]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/net/tokenring/3c359.c
Avoid possible NULL pointer deref in 3c359 driver
[mv-sheeva.git] / drivers / net / tokenring / 3c359.c
index 88d03c085d54b1bb85bec4b6741bae19e91dfec3..7224d368b2a71ed2b4f986a434ff8eb52a75223b 100644 (file)
@@ -1045,11 +1045,6 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
        u8 __iomem * xl_mmio = xl_priv->xl_mmio ; 
        u16 intstatus, macstatus  ;
 
-       if (!dev) { 
-               printk(KERN_WARNING "Device structure dead, aaahhhh !\n") ;
-               return IRQ_NONE; 
-       }
-
        intstatus = readw(xl_mmio + MMIO_INTSTATUS) ;  
 
        if (!(intstatus & 1)) /* We didn't generate the interrupt */