Skip to content

Commit

Permalink
[PATCH] drivers/net/tulip/dmfe.c: remove a check after use
Browse files Browse the repository at this point in the history
  
  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>
  • Loading branch information
Adrian Bunk authored and Jeff Garzik committed May 13, 2005
1 parent 725c0f9 commit f3f1546
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/tulip/dmfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f3f1546

Please sign in to comment.