Skip to contentSkip to conversation

remove unused variable in esp.c

PATCH New Adrian Bunk 1 participant 1 message Jul 1, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused variable in esp.c

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:

drivers/char/esp.c renamed from drivers/char/esp.c.old +0 -1
@@ -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

Signature · 4 lines
       "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