drivers/net: eliminate irq handler impossible checks, needless casts
- Eliminate check for irq handler 'dev_id==NULL' where the condition never occurs. - Eliminate needless casts to/from void* Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -2569,13 +2569,6 @@ pcnet32_interrupt(int irq, void *dev_id)
|
||||
u16 csr0;
|
||||
int boguscnt = max_interrupt_work;
|
||||
|
||||
if (!dev) {
|
||||
if (pcnet32_debug & NETIF_MSG_INTR)
|
||||
printk(KERN_DEBUG "%s(): irq %d for unknown device\n",
|
||||
__FUNCTION__, irq);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
ioaddr = dev->base_addr;
|
||||
lp = dev->priv;
|
||||
|
||||
|
Reference in New Issue
Block a user