summaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-11-16 05:27:19 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-16 14:31:15 +0100
commitb0927bd98f2bdb5687ff038ee5bb9ecaa7a27dfa (patch)
treeb8aa962c7e2ed8a76a853b2f4029a35134ed5ec5 /drivers/isdn
parentisdn: hisax: Fix pnp_irq's error checking for setup_asuscom (diff)
downloadlinux-b0927bd98f2bdb5687ff038ee5bb9ecaa7a27dfa.tar.xz
linux-b0927bd98f2bdb5687ff038ee5bb9ecaa7a27dfa.zip
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>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/hisax/avm_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c
index daf3742cdef6..a18b605fb4f2 100644
--- a/drivers/isdn/hisax/avm_pci.c
+++ b/drivers/isdn/hisax/avm_pci.c
@@ -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);
}