* [PATCH][Trivial] kill unused variable in olympic.c
@ 2004-10-11 13:48 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2004-10-11 13:48 UTC (permalink / raw)
To: Mike Phillips; +Cc: linux-net, linux-tr, linux-kernel, Trivial Patch Monkey
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-11 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 13:48 [PATCH][Trivial] kill unused variable in olympic.c Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).