Skip to content

Commit

Permalink
irq: error missed ifndef CONFIG_HAVE_SPARSE_IRQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dean Nelson authored and Ingo Molnar committed Oct 16, 2008
1 parent ac54a6c commit e65ef88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/htirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update)
#else
irq = create_irq();
#endif
if (irq == 0) {
if (irq <= 0) {
kfree(cfg);
return -EBUSY;
}
Expand Down

0 comments on commit e65ef88

Please sign in to comment.