USB: serial: mos7840: remove set but not used variables 'st, data1, iflag'
commit32d8a6fc5bd62769c7fa60818e0a32bd5126a565
authorYueHaibing <yuehaibing@huawei.com>
Fri, 26 Oct 2018 12:25:49 +0000 (26 20:25 +0800)
committerJohan Hovold <johan@kernel.org>
Mon, 12 Nov 2018 09:35:14 +0000 (12 10:35 +0100)
tree70bd6331800d23eb854cd1128fa8cd9861731fa1
parent548f32f59456e71379c61d4e88727ee6c5f6ccd6
USB: serial: mos7840: remove set but not used variables 'st, data1, iflag'

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

drivers/usb/serial/mos7840.c: In function 'mos7840_interrupt_callback':
drivers/usb/serial/mos7840.c:604:14: warning:
 variable 'st' set but not used [-Wunused-but-set-variable]

drivers/usb/serial/mos7840.c: In function 'mos7840_write':
drivers/usb/serial/mos7840.c:1303:17: warning:
 variable 'data1' set but not used [-Wunused-but-set-variable]

drivers/usb/serial/mos7840.c:1700:11: warning:
 variable 'iflag' set but not used [-Wunused-but-set-variable]

They are never used since introduction in commit 3f5429746d91 ("USB:
Moschip 7840 USB-Serial Driver")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c