[2.6 patch] ISDN b1pcmcia.c: remove an unused variable
From: Adrian Bunk
Date: Fri Oct 29 2004 - 15:33:59 EST
I'm getting the following compile warning in recent 2.6 kernels:
<-- snip -->
...
CC drivers/isdn/hardware/avm/b1pcmcia.o
drivers/isdn/hardware/avm/b1pcmcia.c: In function `b1pcmcia_init':
drivers/isdn/hardware/avm/b1pcmcia.c:203: warning: unused variable `err'
...
<-- snip -->
Since this variable is completely unused, the fix is simple:
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
--- linux-2.6.10-rc1-mm2-full/drivers/isdn/hardware/avm/b1pcmcia.c.old 2004-10-29 21:28:00.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/drivers/isdn/hardware/avm/b1pcmcia.c 2004-10-29 21:28:16.000000000 +0200
@@ -200,7 +200,6 @@
{
char *p;
char rev[32];
- int err;
if ((p = strchr(revision, ':')) != 0 && p[1]) {
strlcpy(rev, p + 2, 32);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/