]> git.hungrycats.org Git - linux/commitdiff
Replace local var in 8139cp net driver that was accidentally removed,
authorJeff Garzik <jgarzik@mandrakesoft.com>
Sun, 29 Sep 2002 22:09:09 +0000 (18:09 -0400)
committerJeff Garzik <jgarzik@mandrakesoft.com>
Sun, 29 Sep 2002 22:09:09 +0000 (18:09 -0400)
due to synchronize_irq() becoming a no-op when !CONFIG_SMP.

drivers/net/8139cp.c

index 7b09c84a80c6caa5da1d8f558c203cbfcc1d4678..ffd97503f92237e5501c9635bbb8abe5e9509956 100644 (file)
@@ -991,6 +991,8 @@ static struct net_device_stats *cp_get_stats(struct net_device *dev)
 
 static void cp_stop_hw (struct cp_private *cp)
 {
+       struct net_device *dev = cp->dev;
+
        cpw16(IntrMask, 0);
        cpr16(IntrMask);
        cpw8(Cmd, 0);
@@ -1002,6 +1004,10 @@ static void cp_stop_hw (struct cp_private *cp)
 
        cp->rx_tail = 0;
        cp->tx_head = cp->tx_tail = 0;
+
+       (void) dev; /* avoid compiler warning when synchronize_irq()
+                    * disappears during !CONFIG_SMP
+                    */
 }
 
 static void cp_reset_hw (struct cp_private *cp)