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:
@@ -909,11 +909,6 @@ plip_interrupt(int irq, void *dev_id)
|
||||
struct plip_local *rcv;
|
||||
unsigned char c0;
|
||||
|
||||
if (dev == NULL) {
|
||||
printk(KERN_DEBUG "plip_interrupt: irq %d for unknown device.\n", irq);
|
||||
return;
|
||||
}
|
||||
|
||||
nl = netdev_priv(dev);
|
||||
rcv = &nl->rcv_data;
|
||||
|
||||
|
Reference in New Issue
Block a user