From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>,
jgarzik@pobox.com, mikep@linuxtr.net,
p2@ace.ulyssis.student.kuleuven.ac.be
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] net/tokenring/olympic.c: remove unused variable (fwd)
Date: Tue, 19 Oct 2004 18:04:31 +0200 [thread overview]
Message-ID: <20041019160431.GA1960@stusta.de> (raw)
The trivial patch forwarded below still applies and compiles against
2.6.9-rc4-mm1.
Please apply.
----- Forwarded message from Adrian Bunk <bunk@stusta.de> -----
Date: Thu, 7 Oct 2004 22:58:18 +0200
From: Adrian Bunk <bunk@stusta.de>
To: jgarzik@pobox.com, mikep@linuxtr.net,
p2@ace.ulyssis.student.kuleuven.ac.be
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
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:
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.9-rc3-mm3/drivers/net/tokenring/olympic.c.old 2004-10-07 22:52:02.000000000 +0200
+++ linux-2.6.9-rc3-mm3/drivers/net/tokenring/olympic.c 2004-10-07 22:53:15.000000000 +0200
@@ -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 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/
----- End forwarded message -----
reply other threads:[~2004-10-19 16:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041019160431.GA1960@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=mikep@linuxtr.net \
--cc=p2@ace.ulyssis.student.kuleuven.ac.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox