aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-03-07 18:31:00 +0000
committerJohan Hovold <johan@kernel.org>2022-03-08 18:51:02 +0100
commit4ac56b1f1ef8139dbfc5dab918aa235e8344ec4e (patch)
tree7ff1e38be7694a421d102c2e4e8b1c018055babf /drivers/usb/serial
parentUSB: serial: pl2303: fix GS type detection (diff)
downloadwireguard-linux-4ac56b1f1ef8139dbfc5dab918aa235e8344ec4e.tar.xz
wireguard-linux-4ac56b1f1ef8139dbfc5dab918aa235e8344ec4e.zip
USB: serial: usb_wwan: remove redundant assignment to variable i
Variable i is being assigned a value that is never read, it is being re-assigned two statements later in a for-loop. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/usb/serial/usb_wwan.c:151:2: warning: Value stored to 'i' 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/serial')
-rw-r--r--drivers/usb/serial/usb_wwan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c
index cb01283d4d15..dab38b63eaf7 100644
--- a/drivers/usb/serial/usb_wwan.c
+++ b/drivers/usb/serial/usb_wwan.c
@@ -148,7 +148,6 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
dev_dbg(&port->dev, "%s: write (%d chars)\n", __func__, count);
- i = 0;
left = count;
for (i = 0; left > 0 && i < N_OUT_URB; i++) {
todo = left;