ariadne: remove redundant NULL check
authorj223yang@asset.uwaterloo.ca <j223yang@asset.uwaterloo.ca>
Thu, 10 Mar 2011 12:36:37 +0000 (12:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2011 22:41:51 +0000 (14:41 -0800)
Simply remove redundant 'dev' NULL check.

Signed-off-by: Jinqiu Yang <crindy646@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ariadne.c

index 39214e51245225056c1cedf9c3404f6cdd51dc2f..7ca0eded2561c2261b16be4dbf1087214eb3b029 100644 (file)
@@ -425,11 +425,6 @@ static irqreturn_t ariadne_interrupt(int irq, void *data)
     int csr0, boguscnt;
     int handled = 0;
 
-    if (dev == NULL) {
-       printk(KERN_WARNING "ariadne_interrupt(): irq for unknown device.\n");
-       return IRQ_NONE;
-    }
-
     lance->RAP = CSR0;                 /* PCnet-ISA Controller Status */
 
     if (!(lance->RDP & INTR))          /* Check if any interrupt has been */