Commit 9532ac14 authored by Colin Ian King's avatar Colin Ian King Committed by Johan Hovold

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 17a2f0b4
...@@ -921,7 +921,6 @@ static void usa28_indat_callback(struct urb *urb) ...@@ -921,7 +921,6 @@ static void usa28_indat_callback(struct urb *urb)
port = urb->context; port = urb->context;
p_priv = usb_get_serial_port_data(port); p_priv = usb_get_serial_port_data(port);
data = urb->transfer_buffer;
if (urb != p_priv->in_urbs[p_priv->in_flip]) if (urb != p_priv->in_urbs[p_priv->in_flip])
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment