summaryrefslogtreecommitdiff
path: root/drivers/isdn
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-11-16 07:27:19 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-16 16:31:15 +0300
commitb0927bd98f2bdb5687ff038ee5bb9ecaa7a27dfa (patch)
treeb8aa962c7e2ed8a76a853b2f4029a35134ed5ec5 /drivers/isdn
parent84dcc16c52baa3a75860bc26a16a4b5d96bb6936 (diff)
downloadlinux-b0927bd98f2bdb5687ff038ee5bb9ecaa7a27dfa.tar.xz
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);
}