projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6582a3b
)
pcmmio: Avoid compiler warning about uninitialized irq[1] which is out of
author
Ian Abbott
<abbotti@mev.co.uk>
Thu, 13 Jan 2011 12:07:33 +0000
(12:07 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/comedi/drivers/pcmmio.c
b/comedi/drivers/pcmmio.c
index 477eec788d17240f1bca245f9de551e47edfd500..6c4da2802029905d943ec0f5f650d28668ecd06c 100644
(file)
--- 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) ");
}