pcmmio: Avoid compiler warning about uninitialized irq[1] which is out of
authorIan Abbott <abbotti@mev.co.uk>
Thu, 13 Jan 2011 12:07:33 +0000 (12:07 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 13 Jan 2011 12:07:33 +0000 (12:07 +0000)
bounds of irq[] anyway (as MAX_ASICS = 1).

comedi/drivers/pcmmio.c

index 477eec788d17240f1bca245f9de551e47edfd500..6c4da2802029905d943ec0f5f650d28668ecd06c 100644 (file)
@@ -507,8 +507,10 @@ static int pcmmio_attach(comedi_device * dev, comedi_devconfig * it)
 
        if (irq[0]) {
                printk("irq: %u ", irq[0]);
+#if MAX_ASICS > 1
                if (thisboard->dio_num_asics == 2 && irq[1])
                        printk("second ASIC irq: %u ", irq[1]);
+#endif
        } else {
                printk("(IRQ mode disabled) ");
        }