irq: error missed ifndef CONFIG_HAVE_SPARSE_IRQ
An error return from create_irq_nr() is 0, but an error return from
create_irq() is -1.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c
index 7c5aef1..7b180e0 100644
--- a/drivers/pci/htirq.c
+++ b/drivers/pci/htirq.c
@@ -144,7 +144,7 @@
#else
irq = create_irq();
#endif
- if (irq == 0) {
+ if (irq <= 0) {
kfree(cfg);
return -EBUSY;
}