Commit 488ddba5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] isicom.c: unused vars

From: Geert Uytterhoeven <geert@linux-m68k.org>

Recent serial changes moved some code, causing unused variable warnings.
parent 90cfa169
...@@ -1313,7 +1313,6 @@ static int isicom_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -1313,7 +1313,6 @@ static int isicom_tiocmset(struct tty_struct *tty, struct file *file,
unsigned int set, unsigned int clear) unsigned int set, unsigned int clear)
{ {
struct isi_port * port = (struct isi_port *) tty->driver_data; struct isi_port * port = (struct isi_port *) tty->driver_data;
unsigned int arg;
unsigned long flags; unsigned long flags;
if (isicom_paranoia_check(port, tty->name, "isicom_ioctl")) if (isicom_paranoia_check(port, tty->name, "isicom_ioctl"))
......
...@@ -2050,7 +2050,6 @@ static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cm ...@@ -2050,7 +2050,6 @@ static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cm
{ {
stliport_t *portp; stliport_t *portp;
stlibrd_t *brdp; stlibrd_t *brdp;
unsigned long lval;
unsigned int ival; unsigned int ival;
int rc; int rc;
......
...@@ -778,7 +778,7 @@ static int moxa_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -778,7 +778,7 @@ static int moxa_tiocmset(struct tty_struct *tty, struct file *file,
{ {
struct moxa_str *ch = (struct moxa_str *) tty->driver_data; struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
int port; int port;
int flag = 0, dtr, rts; int dtr, rts;
port = PORTNO(tty); port = PORTNO(tty);
if ((port != MAX_PORTS) && (!ch)) if ((port != MAX_PORTS) && (!ch))
...@@ -802,8 +802,7 @@ static int moxa_ioctl(struct tty_struct *tty, struct file *file, ...@@ -802,8 +802,7 @@ static int moxa_ioctl(struct tty_struct *tty, struct file *file,
{ {
struct moxa_str *ch = (struct moxa_str *) tty->driver_data; struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
register int port; register int port;
int retval, dtr, rts; int retval;
unsigned long flag;
port = PORTNO(tty); port = PORTNO(tty);
if ((port != MAX_PORTS) && (!ch)) if ((port != MAX_PORTS) && (!ch))
......
...@@ -2150,7 +2150,6 @@ static int mxser_tiocmget(struct tty_struct *tty, struct file *file) ...@@ -2150,7 +2150,6 @@ static int mxser_tiocmget(struct tty_struct *tty, struct file *file)
{ {
struct mxser_struct *info = (struct mxser_struct *) tty->driver_data; struct mxser_struct *info = (struct mxser_struct *) tty->driver_data;
unsigned char control, status; unsigned char control, status;
unsigned int result;
unsigned long flags; unsigned long flags;
if (PORTNO(tty) == MXSER_PORTS) if (PORTNO(tty) == MXSER_PORTS)
...@@ -2177,7 +2176,6 @@ static int mxser_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -2177,7 +2176,6 @@ static int mxser_tiocmset(struct tty_struct *tty, struct file *file,
unsigned int set, unsigned int clear) unsigned int set, unsigned int clear)
{ {
struct mxser_struct *info = (struct mxser_struct *) tty->driver_data; struct mxser_struct *info = (struct mxser_struct *) tty->driver_data;
unsigned int arg;
unsigned long flags; unsigned long flags;
if (PORTNO(tty) == MXSER_PORTS) if (PORTNO(tty) == MXSER_PORTS)
......
...@@ -1696,8 +1696,6 @@ static int sx_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -1696,8 +1696,6 @@ static int sx_tiocmset(struct tty_struct *tty, struct file *file,
unsigned int set, unsigned int clear) unsigned int set, unsigned int clear)
{ {
struct specialix_port *port = (struct specialix_port *)tty->driver_data; struct specialix_port *port = (struct specialix_port *)tty->driver_data;
int error;
unsigned int arg;
unsigned long flags; unsigned long flags;
struct specialix_board *bp; struct specialix_board *bp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment