fix if block that got broken during port to 2.6
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 31 May 2004 23:00:23 +0000 (23:00 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 31 May 2004 23:00:23 +0000 (23:00 +0000)
comedi/drivers/cb_das16_cs.c

index ec42f7de2094bebda93ab763f8d9d3ddb96b3a60..0bb6da8d1565cf4709fdcf8abae84b411e1428c0 100644 (file)
@@ -970,9 +970,10 @@ static void das16cs_pcmcia_config(dev_link_t *link)
                irq structure is initialized.
        */
        if (link->conf.Attributes & CONF_ENABLE_IRQ)
-       last_fn = RequestIRQ;
-       if((last_ret = pcmcia_request_irq(link->handle, &link->irq)) != 0) goto cs_failed;
-
+       {
+               last_fn = RequestIRQ;
+               if((last_ret = pcmcia_request_irq(link->handle, &link->irq)) != 0) goto cs_failed;
+       }
        /*
                This actually configures the PCMCIA socket -- setting up
                the I/O windows and the interrupt mapping, and putting the