Skip to contentSkip to conversation

ISDN b1pcmcia.c: remove an unused variable (fwd)

PATCH New Adrian Bunk 1 participant 1 message Dec 7, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ISDN b1pcmcia.c: remove an unused variable (fwd)

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

Please apply.

----- Forwarded message from Adrian Bunk <[email protected]> -----

Date: Fri, 29 Oct 2004 21:32:29 +0200
From: Adrian Bunk <[email protected]>
To: Carsten Paeth <[email protected]>
Cc: [email protected], [email protected],
[email protected], [email protected]
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:

drivers/isdn/hardware/avm/b1pcmcia.c renamed from drivers/isdn/hardware/avm/b1pcmcia.c.old +0 -1
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

----- End forwarded message -----