[2.6 patch] remove unused variable in mxser.c

From: Adrian Bunk
Date: Thu Jul 01 2004 - 16:51:22 EST


I got the following warning in 2.6.7-mm5:

<-- snip -->

...
CC [M] drivers/char/mxser.o
drivers/char/mxser.c: In function `mxser_module_init':
drivers/char/mxser.c:617: warning: unused variable `index'
...

<-- snip -->

Since the variable is in fact unused, the following patch simply removes
it:

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.7-mm5-modular/drivers/char/mxser.c.old 2004-07-01 23:44:59.000000000 +0200
+++ linux-2.6.7-mm5-modular/drivers/char/mxser.c 2004-07-01 23:46:45.000000000 +0200
@@ -614,7 +614,6 @@
{
struct pci_dev *pdev = NULL;
int n = (sizeof(mxser_pcibrds) / sizeof(mxser_pcibrds[0])) - 1;
- int index = 0;
for (b = 0; b < n; b++) {
while ((pdev = pci_find_device(mxser_pcibrds[b].vendor, mxser_pcibrds[b].device, pdev)))
{


cu
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/