[2.4 patch] fix a compile warning in sbc60xxwdt.c

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sun Aug 03 2003 - 05:57:41 EST


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=sbc60xxwdt -c -o sbc60xxwdt.o sbc60xxwdt.c
sbc60xxwdt.c: In function `sbc60xxwdt_init':
sbc60xxwdt.c:338: warning: label `err_out' defined but not used
...

<-- snip -->

The following simple fix (taken from 2.6.0-test2) fixes it:

--- linux-2.4.22-pre10-full/drivers/char/sbc60xxwdt.c 2002-11-29 00:53:12.000000000 +0100
+++ linux-2.6.0-test2-full/drivers/char/watchdog/sbc60xxwdt.c 2003-07-27 19:05:13.000000000 +0200
@@ -335,7 +340,7 @@
         release_region(WDT_START,1);
 err_out_region1:
         release_region(WDT_STOP,1);
-err_out:
+/* err_out: */
         return rc;
 }
 

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

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



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:21 EST