[PATCH] serial unused vars

From: Geert Uytterhoeven
Date: Tue Apr 06 2004 - 06:32:06 EST



Recent serial changes moved some code, causing unused variable warnings.

--- linux-2.6.5/drivers/char/isicom.c.orig 2004-03-04 11:30:38.000000000 +0100
+++ linux-2.6.5/drivers/char/isicom.c 2004-04-02 10:59:33.000000000 +0200
@@ -1312,7 +1313,6 @@
unsigned int set, unsigned int clear)
{
struct isi_port * port = (struct isi_port *) tty->driver_data;
- unsigned int arg;
unsigned long flags;

if (isicom_paranoia_check(port, tty->name, "isicom_ioctl"))
--- linux-2.6.5/drivers/char/istallion.c.orig 2004-02-29 09:31:29.000000000 +0100
+++ linux-2.6.5/drivers/char/istallion.c 2004-03-31 13:28:53.000000000 +0200
@@ -2050,7 +2050,6 @@
{
stliport_t *portp;
stlibrd_t *brdp;
- unsigned long lval;
unsigned int ival;
int rc;

--- linux-2.6.5/drivers/char/moxa.c.orig 2004-03-04 11:30:38.000000000 +0100
+++ linux-2.6.5/drivers/char/moxa.c 2004-03-31 13:36:50.000000000 +0200
@@ -778,7 +778,7 @@
{
struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
int port;
- int flag = 0, dtr, rts;
+ int dtr, rts;

port = PORTNO(tty);
if ((port != MAX_PORTS) && (!ch))
@@ -802,8 +802,7 @@
{
struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
register int port;
- int retval, dtr, rts;
- unsigned long flag;
+ int retval;

port = PORTNO(tty);
if ((port != MAX_PORTS) && (!ch))
--- linux-2.6.5/drivers/char/mxser.c.orig 2004-02-29 09:31:30.000000000 +0100
+++ linux-2.6.5/drivers/char/mxser.c 2004-03-31 13:30:11.000000000 +0200
@@ -2150,7 +2150,6 @@
{
struct mxser_struct *info = (struct mxser_struct *) tty->driver_data;
unsigned char control, status;
- unsigned int result;
unsigned long flags;

if (PORTNO(tty) == MXSER_PORTS)
@@ -2177,7 +2176,6 @@
unsigned int set, unsigned int clear)
{
struct mxser_struct *info = (struct mxser_struct *) tty->driver_data;
- unsigned int arg;
unsigned long flags;

if (PORTNO(tty) == MXSER_PORTS)
--- linux-2.6.5/drivers/char/specialix.c.orig 2004-02-29 09:31:31.000000000 +0100
+++ linux-2.6.5/drivers/char/specialix.c 2004-03-31 13:28:26.000000000 +0200
@@ -1696,8 +1696,6 @@
unsigned int set, unsigned int clear)
{
struct specialix_port *port = (struct specialix_port *)tty->driver_data;
- int error;
- unsigned int arg;
unsigned long flags;
struct specialix_board *bp;


Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
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/