Skip to content

Commit

Permalink
Char: moxa, remove unused variables
Browse files Browse the repository at this point in the history
drivers/tty/moxa.c:1287:2: warning: Value stored to 'port' is never read
        port = tty->index;
        ^      ~~~~~~~~~~
drivers/tty/moxa.c:1763:2: warning: Value stored to 'cflag' is never read
        cflag = termio->c_cflag;        /* termio->c_cflag */
        ^       ~~~~~~~~~~~~~~~

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 19, 2011
1 parent f2ee4ae commit 9d86f71
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/tty/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,10 +1281,8 @@ static int moxa_tiocmset(struct tty_struct *tty,
unsigned int set, unsigned int clear)
{
struct moxa_port *ch;
int port;
int dtr, rts;

port = tty->index;
mutex_lock(&moxa_openlock);
ch = tty->driver_data;
if (!ch) {
Expand Down Expand Up @@ -1756,11 +1754,9 @@ static int MoxaPortSetTermio(struct moxa_port *port, struct ktermios *termio,
speed_t baud)
{
void __iomem *ofsAddr;
tcflag_t cflag;
tcflag_t mode = 0;

ofsAddr = port->tableAddr;
cflag = termio->c_cflag; /* termio->c_cflag */

mode = termio->c_cflag & CSIZE;
if (mode == CS5)
Expand Down

0 comments on commit 9d86f71

Please sign in to comment.