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>
This commit is contained in:
@@ -915,15 +915,11 @@ static void build_fake_packet(struct lance_private *lp)
|
||||
lp->tx_new = TX_NEXT(entry);
|
||||
}
|
||||
|
||||
struct net_device *last_dev;
|
||||
|
||||
static int lance_open(struct net_device *dev)
|
||||
{
|
||||
struct lance_private *lp = netdev_priv(dev);
|
||||
int status = 0;
|
||||
|
||||
last_dev = dev;
|
||||
|
||||
STOP_LANCE(lp);
|
||||
|
||||
if (request_irq(dev->irq, &lance_interrupt, IRQF_SHARED,
|
||||
|
Reference in New Issue
Block a user