[PATCH][Trivial] kill unused variable in olympic.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's a trivial patch that removes an unused variable in olympic.c and 
thus kill the associated warning.

drivers/net/tokenring/olympic.c: In function `olympic_arb_cmd':
drivers/net/tokenring/olympic.c:1404: warning: unused variable `i'
  LD      drivers/net/tokenring/built-in.o

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

diff -up linux-2.6.9-rc4-orig/drivers/net/tokenring/olympic.c linux-2.6.9-rc4/drivers/net/tokenring/olympic.c
--- linux-2.6.9-rc4-orig/drivers/net/tokenring/olympic.c	2004-10-11 09:59:55.000000000 +0200
+++ linux-2.6.9-rc4/drivers/net/tokenring/olympic.c	2004-10-11 15:31:29.000000000 +0200
@@ -1401,7 +1401,6 @@ static void olympic_arb_cmd(struct net_d
 	u16 lan_status = 0, lan_status_diff  ; /* Initialize to stop compiler warning */
 	u8 fdx_prot_error ; 
 	u16 next_ptr;
-	int i ; 
 
 	arb_block = (olympic_priv->olympic_lap + olympic_priv->arb) ; 
 	asb_block = (olympic_priv->olympic_lap + olympic_priv->asb) ; 


I guess this should just wait post 2.6.9 final since Linus said "hold the 
patches" in the -rc4 announcement, and it's quite trivial anyway, so no 
hurry.


--
Jesper Juhl

PS. I'm only subscribed to linux-kernel, so please CC me on replies from 
other lists.


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux