mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
isdn: hisax: Fix pnp_irq's error checking for avm_pnp_setup
The pnp_irq() function returns -1 if an error occurs. pnp_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
84dcc16c52
commit
b0927bd98f
@ -805,7 +805,7 @@ static int avm_pnp_setup(struct IsdnCardState *cs)
|
||||
cs->hw.avm.cfg_reg =
|
||||
pnp_port_start(pnp_avm_d, 0);
|
||||
cs->irq = pnp_irq(pnp_avm_d, 0);
|
||||
if (!cs->irq) {
|
||||
if (cs->irq == -1) {
|
||||
printk(KERN_ERR "FritzPnP:No IRQ\n");
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user