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:
@@ -265,12 +265,6 @@ static irqreturn_t de600_interrupt(int irq, void *dev_id)
|
||||
int retrig = 0;
|
||||
int boguscount = 0;
|
||||
|
||||
/* This might just as well be deleted now, no crummy drivers present :-) */
|
||||
if ((dev == NULL) || (DE600_IRQ != irq)) {
|
||||
printk(KERN_ERR "%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
spin_lock(&de600_lock);
|
||||
|
||||
select_nic();
|
||||
|
Reference in New Issue
Block a user