* [2.6 patch] remove unused variable in esp.c
@ 2004-07-01 21:44 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-07-01 21:44 UTC (permalink / raw)
To: linux-kernel
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@fs.tum.de>
--- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-01 21:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 21:44 [2.6 patch] remove unused variable in esp.c Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®