]> err.no Git - linux-2.6/commitdiff
[PATCH] drivers/net/tulip/dmfe.c: remove a check after use
authorAdrian Bunk <bunk@stusta.de>
Fri, 13 May 2005 02:25:14 +0000 (22:25 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 13 May 2005 02:25:14 +0000 (22:25 -0400)
  This patch removes a NULL check that was useles because it happened
  after the first dereference of the variable.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/tulip/dmfe.c

index 3f19f5795051bf6580a04fbeee73919a72215cb7..04539fca270f6267274af41c3ab1dca7cd453db9 100644 (file)
@@ -744,11 +744,6 @@ static irqreturn_t dmfe_interrupt(int irq, void *dev_id, struct pt_regs *regs)
 
        DMFE_DBUG(0, "dmfe_interrupt()", 0);
 
-       if (!dev) {
-               DMFE_DBUG(1, "dmfe_interrupt() without DEVICE arg", 0);
-               return IRQ_NONE;
-       }
-
        spin_lock_irqsave(&db->lock, flags);
 
        /* Got DM910X status */