Commit 4dd228c2 authored by Colin Ian King's avatar Colin Ian King Committed by Khalid Elmously

USB: adutux: remove redundant variable minor

BugLink: https://bugs.launchpad.net/bugs/1848780

commit 8444efc4 upstream.

Variable minor is being assigned but never read, hence it is redundant
and can be removed. Cleans up clang warning:

drivers/usb/misc/adutux.c:770:2: warning: Value stored to 'minor' is
never read
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 8c2cafb8
...@@ -800,13 +800,11 @@ static int adu_probe(struct usb_interface *interface, ...@@ -800,13 +800,11 @@ static int adu_probe(struct usb_interface *interface,
static void adu_disconnect(struct usb_interface *interface) static void adu_disconnect(struct usb_interface *interface)
{ {
struct adu_device *dev; struct adu_device *dev;
int minor;
dev = usb_get_intfdata(interface); dev = usb_get_intfdata(interface);
mutex_lock(&dev->mtx); /* not interruptible */ mutex_lock(&dev->mtx); /* not interruptible */
dev->udev = NULL; /* poison */ dev->udev = NULL; /* poison */
minor = dev->minor;
usb_deregister_dev(interface, &adu_class); usb_deregister_dev(interface, &adu_class);
mutex_unlock(&dev->mtx); mutex_unlock(&dev->mtx);
......
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