summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-02-07 13:41:28 +0300
committerJohan Hovold <johan@kernel.org>2024-03-04 16:54:36 +0300
commit9532ac14d8b2216236c02d9903b373dec46410e2 (patch)
tree798f4ec3f71f0eb40524761d414088352a9f5c2c /drivers/usb
parent17a2f0b45ad1894d89832553947340872d4daecc (diff)
downloadlinux-9532ac14d8b2216236c02d9903b373dec46410e2.tar.xz
USB: serial: keyspan: remove redundant assignment to pointer data
The pointer data is being assigned a value that is not being read afterwards, it is being re-assigned later inside a do-while loop. The assignment is redundant and can be removed. Cleans up clang scan warning: drivers/usb/serial/keyspan.c:924:2: warning: Value stored to 'data' 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/keyspan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 93b17e0e05a3..0a783985197c 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -921,7 +921,6 @@ static void usa28_indat_callback(struct urb *urb)
port = urb->context;
p_priv = usb_get_serial_port_data(port);
- data = urb->transfer_buffer;
if (urb != p_priv->in_urbs[p_priv->in_flip])
return;