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

From: Jesper Juhl
Date: Mon Oct 11 2004 - 08:43:05 EST



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@xxxxxx>

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.


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