Skip to contentSkip to conversation

net/tokenring/olympic.c: remove unused variable (fwd)

PATCH New Adrian Bunk 1 participant 1 message Oct 19, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/tokenring/olympic.c: remove unused variable (fwd)

The trivial patch forwarded below still applies and compiles against 2.6.9-rc4-mm1.

Please apply.

----- Forwarded message from Adrian Bunk <[email protected]> -----

Date: Thu, 7 Oct 2004 22:58:18 +0200
From: Adrian Bunk <[email protected]>
To: [email protected], [email protected],
[email protected]
Cc: [email protected], [email protected]
Subject: [2.6 patch] net/tokenring/olympic.c: remove unused variable

Recent changes in Linus' tree removed all uses of a variable, resulting in the following warning:

<-- snip -->

...
CC drivers/net/tokenring/olympic.o
drivers/net/tokenring/olympic.c: In function `olympic_arb_cmd':
drivers/net/tokenring/olympic.c:1404: warning: unused variable `i'
...

<-- snip -->

The following patch removes this unused variable:

drivers/net/tokenring/olympic.c renamed from drivers/net/tokenring/olympic.c.old +0 -1
@@ -1401,7 +1401,6 @@
 	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) ; 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

----- End forwarded message -----