Commit 17c42e34 authored by YueHaibing's avatar YueHaibing Committed by Johan Hovold

USB: serial: cypress_m8: remove set but not used variable 'iflag'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/serial/cypress_m8.c: In function 'cypress_set_termios':
drivers/usb/serial/cypress_m8.c:866:18: warning:
 variable 'iflag' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 56445eef
...@@ -863,7 +863,7 @@ static void cypress_set_termios(struct tty_struct *tty, ...@@ -863,7 +863,7 @@ static void cypress_set_termios(struct tty_struct *tty,
struct cypress_private *priv = usb_get_serial_port_data(port); struct cypress_private *priv = usb_get_serial_port_data(port);
struct device *dev = &port->dev; struct device *dev = &port->dev;
int data_bits, stop_bits, parity_type, parity_enable; int data_bits, stop_bits, parity_type, parity_enable;
unsigned cflag, iflag; unsigned int cflag;
unsigned long flags; unsigned long flags;
__u8 oldlines; __u8 oldlines;
int linechange = 0; int linechange = 0;
...@@ -899,7 +899,6 @@ static void cypress_set_termios(struct tty_struct *tty, ...@@ -899,7 +899,6 @@ static void cypress_set_termios(struct tty_struct *tty,
tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS); tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS);
cflag = tty->termios.c_cflag; cflag = tty->termios.c_cflag;
iflag = tty->termios.c_iflag;
/* check if there are new settings */ /* check if there are new settings */
if (old_termios) { if (old_termios) {
......
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