aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-07 06:45:27 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 09:52:29 -0500
commit8444efc4a052332d643ed5c8aebcca148c7de032 (patch)
tree90feaa63535b70a263299eeaf4fc0312ab33bc63
parentf8f3e4acbde3dff2e433d02476034606e07ac742 (diff)
USB: adutux: remove redundant variable minor
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/misc/adutux.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index e9195a7103a8..4b8712733fc7 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -757,13 +757,11 @@ error:
757static void adu_disconnect(struct usb_interface *interface) 757static void adu_disconnect(struct usb_interface *interface)
758{ 758{
759 struct adu_device *dev; 759 struct adu_device *dev;
760 int minor;
761 760
762 dev = usb_get_intfdata(interface); 761 dev = usb_get_intfdata(interface);
763 762
764 mutex_lock(&dev->mtx); /* not interruptible */ 763 mutex_lock(&dev->mtx); /* not interruptible */
765 dev->udev = NULL; /* poison */ 764 dev->udev = NULL; /* poison */
766 minor = dev->minor;
767 usb_deregister_dev(interface, &adu_class); 765 usb_deregister_dev(interface, &adu_class);
768 mutex_unlock(&dev->mtx); 766 mutex_unlock(&dev->mtx);
769 767