aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/declance.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-06-10 01:23:25 +0300
committerJeff Garzik <jgarzik@redhat.com>2008-06-11 21:58:34 -0400
commit3a221d17a7a031ad04242f6bc86b7dff307534f8 (patch)
tree5ef8e8a28b97a6cdc2714370e3be08203c2361d6 /drivers/net/declance.c
parentdrivers/net/mac8390.c: make functions static (diff)
downloadlinux-dev-3a221d17a7a031ad04242f6bc86b7dff307534f8.tar.xz
linux-dev-3a221d17a7a031ad04242f6bc86b7dff307534f8.zip
drivers/net/: remove write-only "last_dev"
This patch removes write-only global "last_dev" variables from the following drivers: - a2065.c - declance.c - sunlance.c Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/declance.c')
-rw-r--r--drivers/net/declance.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c
index 6b1e77cc069e..3e3506411ac0 100644
--- a/drivers/net/declance.c
+++ b/drivers/net/declance.c
@@ -773,8 +773,6 @@ static irqreturn_t lance_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}
-struct net_device *last_dev = 0;
-
static int lance_open(struct net_device *dev)
{
volatile u16 *ib = (volatile u16 *)dev->mem_start;
@@ -782,8 +780,6 @@ static int lance_open(struct net_device *dev)
volatile struct lance_regs *ll = lp->ll;
int status = 0;
- last_dev = dev;
-
/* Stop the Lance */
writereg(&ll->rap, LE_CSR0);
writereg(&ll->rdp, LE_C0_STOP);