Skip to contentSkip to conversation

Remove useless check for null dev from uli526x_interrupt()

PATCH Dave Jones 1 participant 1 message Jun 12, 2006

Subsystems (2)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

As we're already dereferencing dev a few lines above, if this check could ever trigger, we'd have already oopsed.

drivers/net/tulip/uli526x.c renamed from drivers/net/tulip/uli526x.c~ +0 -5
@@ -666,11 +666,6 @@ static irqreturn_t uli526x_interrupt(int
 	unsigned long ioaddr = dev->base_addr;
 	unsigned long flags;
 
-	if (!dev) {
-		ULI526X_DBUG(1, "uli526x_interrupt() without DEVICE arg", 0);
-		return IRQ_NONE;
-	}
-
 	spin_lock_irqsave(&db->lock, flags);
 	outl(0, ioaddr + DCR7);