[lkml]   [2002]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch] remove an unused variable from bpck6.c

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
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 */



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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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