Commit c588f1a4 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

usb: misc: uss720: remove redundant pointer usbdev

Pointer usbdev is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'usbdev' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a7d8205e
...@@ -748,13 +748,11 @@ static void uss720_disconnect(struct usb_interface *intf) ...@@ -748,13 +748,11 @@ static void uss720_disconnect(struct usb_interface *intf)
{ {
struct parport *pp = usb_get_intfdata(intf); struct parport *pp = usb_get_intfdata(intf);
struct parport_uss720_private *priv; struct parport_uss720_private *priv;
struct usb_device *usbdev;
dev_dbg(&intf->dev, "disconnect\n"); dev_dbg(&intf->dev, "disconnect\n");
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (pp) { if (pp) {
priv = pp->private_data; priv = pp->private_data;
usbdev = priv->usbdev;
priv->usbdev = NULL; priv->usbdev = NULL;
priv->pp = NULL; priv->pp = NULL;
dev_dbg(&intf->dev, "parport_remove_port\n"); dev_dbg(&intf->dev, "parport_remove_port\n");
......
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