From: Adrian Bunk <bunk@fs.tum.de>
To: linux-dev@micro-solutions.com, <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: [patch] remove an unused variable from bpck6.c
Date: Wed, 8 May 2002 23:42:37 +0200 (CEST) [thread overview]
Message-ID: <Pine.NEB.4.44.0205082338100.19321-100000@mimas.fachschaften.tu-muenchen.de> (raw)
Hi,
compiling bpck6.c gives the following warning:
<-- snip -->
...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=k6 -nostdinc -I
/usr/lib/gcc-lib/i386-linux/2.95.4/i
nclude -DKBUILD_BASENAME=bpck6 -c -o bpck6.o bpck6.c
bpck6.c: In function `bpck6_init_proto':
bpck6.c:228: warning: unused variable `i'
...
<-- snip -->
And the compiler is right, this variable isn't used anywhere. The
following patch (made against 2.4.19-pre8-ac1 but it applies to all 2.4
and 2.5 kernels) removes this variable:
--- drivers/block/paride/bpck6.c.old Wed May 8 23:40:18 2002
+++ drivers/block/paride/bpck6.c Wed May 8 23:41:21 2002
@@ -225,8 +225,6 @@
static void bpck6_init_proto(PIA *pi)
{
- int i;
-
/* allocate a state structure for this item */
pi->privptr=kmalloc(sizeof(PPC_STORAGE),GFP_KERNEL);
cu
Adrian
--
You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox
reply other threads:[~2002-05-08 21:47 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=Pine.NEB.4.44.0205082338100.19321-100000@mimas.fachschaften.tu-muenchen.de \
--to=bunk@fs.tum.de \
--cc=axboe@suse.de \
--cc=linux-dev@micro-solutions.com \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).