]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/: remove write-only "last_dev"
authorAdrian Bunk <bunk@kernel.org>
Mon, 9 Jun 2008 22:23:25 +0000 (01:23 +0300)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 12 Jun 2008 01:58:34 +0000 (21:58 -0400)
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>
drivers/net/a2065.c
drivers/net/declance.c
drivers/net/sunlance.c

index 6c5719ae8ccaac3fdaac37fe06fc0aa630c83c89..9c0837435b68dd83b88fca7355308796c2257e2e 100644 (file)
@@ -475,16 +475,12 @@ static irqreturn_t lance_interrupt (int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-struct net_device *last_dev;
-
 static int lance_open (struct net_device *dev)
 {
        struct lance_private *lp = netdev_priv(dev);
        volatile struct lance_regs *ll = lp->ll;
        int ret;
 
-       last_dev = dev;
-
        /* Stop the Lance */
        ll->rap = LE_CSR0;
        ll->rdp = LE_C0_STOP;
index 6b1e77cc069e989b5d48b71911b03f5ed3ddf1f5..3e3506411ac08a50501e8049bb6f0b74af9a0363 100644 (file)
@@ -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);
index 26ade68aeabf29cc342baf7eb4dbe278964e59ae..4e994f87469e4e9fc98ecec83a734c3778cc8c38 100644 (file)
@@ -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,