diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-19 11:14:03 +0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-24 03:53:16 +0400 |
commit | 1daec86ad11383845274e032d1b90620258dc87d (patch) | |
tree | 01fb555646b490dd494e1d51869c6f1d51cba7e7 /drivers/net/lib82596.c | |
parent | 06efcad0d43a5491602f7d7bfc1ce997cdb0d062 (diff) | |
download | linux-1daec86ad11383845274e032d1b90620258dc87d.tar.xz |
[NETDRVR] lib82596, netxen: delete pointless tests from irq handler
Remove always-false tests in irq handler.
Also a few other minor cleanups.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/lib82596.c')
-rw-r--r-- | drivers/net/lib82596.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/lib82596.c b/drivers/net/lib82596.c index ffaa14f2cd01..9a855e512147 100644 --- a/drivers/net/lib82596.c +++ b/drivers/net/lib82596.c @@ -1124,12 +1124,6 @@ static irqreturn_t i596_interrupt(int irq, void *dev_id) struct i596_dma *dma; unsigned short status, ack_cmd = 0; - if (dev == NULL) { - printk(KERN_WARNING "%s: irq %d for unknown device.\n", - __FUNCTION__, irq); - return IRQ_NONE; - } - lp = netdev_priv(dev); dma = lp->dma; @@ -1140,7 +1134,7 @@ static irqreturn_t i596_interrupt(int irq, void *dev_id) DEB(DEB_INTS, printk(KERN_DEBUG "%s: i596 interrupt, IRQ %d, status %4.4x.\n", - dev->name, irq, status)); + dev->name, dev->irq, status)); ack_cmd = status & 0xf000; |