diff options
author | Colin Ian King | 2024-02-07 10:49:36 +0000 |
---|---|---|
committer | Johan Hovold | 2024-03-04 14:54:02 +0100 |
commit | 17a2f0b45ad1894d89832553947340872d4daecc (patch) | |
tree | 4a65b1703b6c50f496036de5d0a4c6f664f3b2e2 /drivers/usb | |
parent | 524e2ebd3b959e9ee069caf960ead0d519c8bf17 (diff) |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 22d01a0f10fb..76a04ab41100 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2612,7 +2612,7 @@ static void ftdi_set_termios(struct tty_struct *tty, struct device *ddev = &port->dev; struct ftdi_private *priv = usb_get_serial_port_data(port); struct ktermios *termios = &tty->termios; - unsigned int cflag = termios->c_cflag; + unsigned int cflag; u16 value, index; int ret; |