lkml.org 
[lkml]   [2004]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][Trivial] kill unused variable in olympic.c

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.


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

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.042 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site