Skip to content

Commit 17a2f0b

Browse files
ColinIanKingjhovold
authored andcommitted
USB: serial: ftdi_sio: remove redundant assignment to variable cflag
The variable cflag is being assigned a value that is not being read afterwards, it is being re-assigned later on. The assignment is redundant and can be removed. Cleans up clang scan warning: drivers/usb/serial/ftdi_sio.c:2613:15: warning: Value stored to 'cflag' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org>
1 parent 524e2eb commit 17a2f0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/serial/ftdi_sio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ static void ftdi_set_termios(struct tty_struct *tty,
26122612
struct device *ddev = &port->dev;
26132613
struct ftdi_private *priv = usb_get_serial_port_data(port);
26142614
struct ktermios *termios = &tty->termios;
2615-
unsigned int cflag = termios->c_cflag;
2615+
unsigned int cflag;
26162616
u16 value, index;
26172617
int ret;
26182618

0 commit comments

Comments
 (0)