]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix warning in drivers/net/tulip/timer.c
authorAdrian Bunk <bunk@fs.tum.de>
Mon, 19 Apr 2004 08:43:04 +0000 (04:43 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 19 Apr 2004 08:43:04 +0000 (04:43 -0400)
I get the following warning in 2.6.5-mm6 and 2.6.6-rc1:

<--  snip  -->

...
  CC      drivers/net/tulip/timer.o
drivers/net/tulip/timer.c: In function `comet_timer':
drivers/net/tulip/timer.c:156: warning: unused variable `ioaddr'
...

<--  snip  -->

Since the
   [netdrvr tulip] add MII support for Comet chips
patch has removed the only use of this variable, the fix is simple:

drivers/net/tulip/timer.c

index b6b61cb7db6808f647ae787a615a933568a0f0ad..69f06dc0c7b73ac660c83b801629bf66c02edd2c 100644 (file)
@@ -153,7 +153,6 @@ void comet_timer(unsigned long data)
 {
        struct net_device *dev = (struct net_device *)data;
        struct tulip_private *tp = netdev_priv(dev);
-       long ioaddr = dev->base_addr;
        int next_tick = 60*HZ;
 
        if (tulip_debug > 1)