[2.6 patch] ISDN b1pcmcia.c: remove an unused variable (fwd)

From: Adrian Bunk
Date: Tue Dec 07 2004 - 15:01:59 EST


The patch forwarded below still applies and compiles against
2.6.10-rc2-mm4.

Please apply.



----- Forwarded message from Adrian Bunk <bunk@xxxxxxxxx> -----

Date: Fri, 29 Oct 2004 21:32:29 +0200
From: Adrian Bunk <bunk@xxxxxxxxx>
To: Carsten Paeth <calle@xxxxxxxx>
Cc: kkeil@xxxxxxx, kai.germaschewski@xxxxxx,
isdn4linux@xxxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: [2.6 patch] ISDN b1pcmcia.c: remove an unused variable


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/

----- End forwarded message -----
-
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/