mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.4 patch] fix a compile warning in ip2main.c
@ 2003-08-03 10:59 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-08-03 10:59 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-kernel, trivial

I got the following compile warning in 2.4.22-pre10:

<--  snip  -->

...
gcc -D__KERNEL__ 
-I/home/bunk/linux/kernel-2.4/linux-2.4.22-pre10-full/include -
Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -pipe -mpreferred-stack-boundary=2 -march=k6   -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=ip2main  -c -o ip2main.o ip2main.c
ip2main.c: In function `ip2_init_board':
ip2main.c:991: warning: unused variable `rc'
...

<--  snip  -->


The following patch removes this unused variable:

--- linux-2.4.22-pre10-full/drivers/char/ip2main.c.old	2003-08-02 22:46:51.000000000 +0200
+++ linux-2.4.22-pre10-full/drivers/char/ip2main.c	2003-08-02 22:47:23.000000000 +0200
@@ -988,7 +988,7 @@
 static void __init
 ip2_init_board( int boardnum )
 {
-	int i,rc;
+	int i;
 	int nports = 0, nboxes = 0;
 	i2ChanStrPtr pCh;
 	i2eBordStrPtr pB = i2BoardPtrTable[boardnum];



I've tested the compilation with 2.4.22-pre10.

Please apply
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-03 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-03 10:59 [2.4 patch] fix a compile warning in ip2main.c Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®