mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a7d8205eae
commit
c588f1a46a
1 changed files with 0 additions and 2 deletions
|
|
@ -748,13 +748,11 @@ static void uss720_disconnect(struct usb_interface *intf)
|
|||
{
|
||||
struct parport *pp = usb_get_intfdata(intf);
|
||||
struct parport_uss720_private *priv;
|
||||
struct usb_device *usbdev;
|
||||
|
||||
dev_dbg(&intf->dev, "disconnect\n");
|
||||
usb_set_intfdata(intf, NULL);
|
||||
if (pp) {
|
||||
priv = pp->private_data;
|
||||
usbdev = priv->usbdev;
|
||||
priv->usbdev = NULL;
|
||||
priv->pp = NULL;
|
||||
dev_dbg(&intf->dev, "parport_remove_port\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue