From 543a5b5e93e6ca9a81b7d834f25306b71a2e7cd0 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 13 Jan 2011 12:07:33 +0000 Subject: [PATCH] pcmmio: Avoid compiler warning about uninitialized irq[1] which is out of bounds of irq[] anyway (as MAX_ASICS = 1). --- comedi/drivers/pcmmio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/drivers/pcmmio.c b/comedi/drivers/pcmmio.c index 477eec78..6c4da280 100644 --- a/comedi/drivers/pcmmio.c +++ b/comedi/drivers/pcmmio.c @@ -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) "); } -- 2.26.2