[2.6 patch] remove unused variable in esp.c

From: Adrian Bunk
Date: Thu Jul 01 2004 - 16:46:18 EST


I got the following warning in 2.6.7-mm5:

<-- snip -->

...
CC [M] drivers/char/esp.o
drivers/char/esp.c: In function `esp_tiocmset':
drivers/char/esp.c:1783: warning: unused variable `arg'
...

<-- 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/esp.c.old 2004-07-01 23:39:03.000000000 +0200
+++ linux-2.6.7-mm5-modular/drivers/char/esp.c 2004-07-01 23:39:11.000000000 +0200
@@ -1780,7 +1780,6 @@
unsigned int set, unsigned int clear)
{
struct esp_struct * info = (struct esp_struct *)tty->driver_data;
- unsigned int arg;

if (serial_paranoia_check(info, tty->name, __FUNCTION__))
return -ENODEV;


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/