aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2011-03-23 04:49:59 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-19 17:41:48 -0400
commit9d86f71b599a3f59bc9fe7eabf6c84c8c3a37fe0 (patch)
tree5516395890af36fd34f129ec9d336ace720e3be3 /drivers
parentf2ee4ae87d7781ddb5bf8da25591b9b79966f8ea (diff)
Char: moxa, remove unused variables
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/moxa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 35b0c38590e6..ffdaab393144 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -1281,10 +1281,8 @@ static int moxa_tiocmset(struct tty_struct *tty,
1281 unsigned int set, unsigned int clear) 1281 unsigned int set, unsigned int clear)
1282{ 1282{
1283 struct moxa_port *ch; 1283 struct moxa_port *ch;
1284 int port;
1285 int dtr, rts; 1284 int dtr, rts;
1286 1285
1287 port = tty->index;
1288 mutex_lock(&moxa_openlock); 1286 mutex_lock(&moxa_openlock);
1289 ch = tty->driver_data; 1287 ch = tty->driver_data;
1290 if (!ch) { 1288 if (!ch) {
@@ -1756,11 +1754,9 @@ static int MoxaPortSetTermio(struct moxa_port *port, struct ktermios *termio,
1756 speed_t baud) 1754 speed_t baud)
1757{ 1755{
1758 void __iomem *ofsAddr; 1756 void __iomem *ofsAddr;
1759 tcflag_t cflag;
1760 tcflag_t mode = 0; 1757 tcflag_t mode = 0;
1761 1758
1762 ofsAddr = port->tableAddr; 1759 ofsAddr = port->tableAddr;
1763 cflag = termio->c_cflag; /* termio->c_cflag */
1764 1760
1765 mode = termio->c_cflag & CSIZE; 1761 mode = termio->c_cflag & CSIZE;
1766 if (mode == CS5) 1762 if (mode == CS5)