summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-08 16:46:01 +0000
committerJohan Hovold <johan@kernel.org>2020-02-10 10:38:54 +0100
commit2c0bee081315b18064fe39661e679b2fe6b86476 (patch)
treed8dd4dec15dbcba0abc974935bb9c97ab2f2f9df /drivers/usb
parent32553441569482e36e65371edb84494bcec53c03 (diff)
downloadlinux-stable-2c0bee081315b18064fe39661e679b2fe6b86476.tar.gz
linux-stable-2c0bee081315b18064fe39661e679b2fe6b86476.tar.bz2
linux-stable-2c0bee081315b18064fe39661e679b2fe6b86476.zip
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/digi_acceleport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c
index 578ebdd86520..91055a191995 100644
--- a/drivers/usb/serial/digi_acceleport.c
+++ b/drivers/usb/serial/digi_acceleport.c
@@ -1472,7 +1472,7 @@ static int digi_read_oob_callback(struct urb *urb)
struct usb_serial_port *port = urb->context;
struct usb_serial *serial = port->serial;
struct tty_struct *tty;
- struct digi_port *priv = usb_get_serial_port_data(port);
+ struct digi_port *priv;
unsigned char *buf = urb->transfer_buffer;
int opcode, line, status, val;
unsigned long flags;