Commit 2c0bee08 authored by Colin Ian King's avatar Colin Ian King Committed by Johan Hovold

USB: serial: digi_acceleport: remove redundant assignment to pointer priv

Pointer priv is being assigned with a value that is never read, it is
assigned a new value later on in a for-loop. The assignment is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 32553441
...@@ -1472,7 +1472,7 @@ static int digi_read_oob_callback(struct urb *urb) ...@@ -1472,7 +1472,7 @@ static int digi_read_oob_callback(struct urb *urb)
struct usb_serial_port *port = urb->context; struct usb_serial_port *port = urb->context;
struct usb_serial *serial = port->serial; struct usb_serial *serial = port->serial;
struct tty_struct *tty; struct tty_struct *tty;
struct digi_port *priv = usb_get_serial_port_data(port); struct digi_port *priv;
unsigned char *buf = urb->transfer_buffer; unsigned char *buf = urb->transfer_buffer;
int opcode, line, status, val; int opcode, line, status, val;
unsigned long flags; unsigned long flags;
......
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