From: Frank Mori Hess Date: Mon, 31 May 2004 23:00:23 +0000 (+0000) Subject: fix if block that got broken during port to 2.6 X-Git-Tag: r0_7_69~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59ebae61e6d477eb119252ca33c23647fc08c274;p=comedi.git fix if block that got broken during port to 2.6 --- diff --git a/comedi/drivers/cb_das16_cs.c b/comedi/drivers/cb_das16_cs.c index ec42f7de..0bb6da8d 100644 --- a/comedi/drivers/cb_das16_cs.c +++ b/comedi/drivers/cb_das16_cs.c @@ -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