lkml.org 
[lkml]   [2004]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] 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:

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.034 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site