···912912static irqreturn_t913913el3_interrupt(int irq, void *dev_id)914914{915915- struct net_device *dev = (struct net_device *)dev_id;915915+ struct net_device *dev = dev_id;916916 struct el3_private *lp;917917 int ioaddr, status;918918 int i = max_interrupt_work;919919-920920- if (dev == NULL) {921921- printk ("el3_interrupt(): irq %d for unknown device.\n", irq);922922- return IRQ_NONE;923923- }924919925920 lp = netdev_priv(dev);926921 spin_lock(&lp->lock);
+2-5
drivers/net/3c523.c
···902902static irqreturn_t903903elmc_interrupt(int irq, void *dev_id)904904{905905- struct net_device *dev = (struct net_device *) dev_id;905905+ struct net_device *dev = dev_id;906906 unsigned short stat;907907 struct priv *p;908908909909- if (dev == NULL) {910910- printk(KERN_ERR "elmc-interrupt: irq %d for unknown device.\n", irq);911911- return IRQ_NONE;912912- } else if (!netif_running(dev)) {909909+ if (!netif_running(dev)) {913910 /* The 3c523 has this habit of generating interrupts during the914911 reset. I'm not sure if the ni52 has this same problem, but it's915912 really annoying if we haven't finished initializing it. I was
-5
drivers/net/3c527.c
···13241324 int rx_event = 0;13251325 int tx_event = 0;1326132613271327- if (dev == NULL) {13281328- printk(KERN_WARNING "%s: irq %d for unknown device.\n", cardname, irq);13291329- return IRQ_NONE;13301330- }13311331-13321327 ioaddr = dev->base_addr;13331328 lp = netdev_priv(dev);13341329
+1-7
drivers/net/8390.c
···406406 int interrupts, nr_serviced = 0;407407 struct ei_device *ei_local;408408409409- if (dev == NULL)410410- {411411- printk ("net_interrupt(): irq %d for unknown device.\n", irq);412412- return IRQ_NONE;413413- }414414-415409 e8390_base = dev->base_addr;416416- ei_local = (struct ei_device *) netdev_priv(dev);410410+ ei_local = netdev_priv(dev);417411418412 /*419413 * Protect the irq test too.
+1-5
drivers/net/atp.c
···598598 Handle the network interface interrupts. */599599static irqreturn_t atp_interrupt(int irq, void *dev_instance)600600{601601- struct net_device *dev = (struct net_device *)dev_instance;601601+ struct net_device *dev = dev_instance;602602 struct net_local *lp;603603 long ioaddr;604604 static int num_tx_since_rx;605605 int boguscount = max_interrupt_work;606606 int handled = 0;607607608608- if (dev == NULL) {609609- printk(KERN_ERR "ATP_interrupt(): irq %d for unknown device.\n", irq);610610- return IRQ_NONE;611611- }612608 ioaddr = dev->base_addr;613609 lp = netdev_priv(dev);614610
-6
drivers/net/de600.c
···265265 int retrig = 0;266266 int boguscount = 0;267267268268- /* This might just as well be deleted now, no crummy drivers present :-) */269269- if ((dev == NULL) || (DE600_IRQ != irq)) {270270- printk(KERN_ERR "%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);271271- return IRQ_NONE;272272- }273273-274268 spin_lock(&de600_lock);275269276270 select_nic();