summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-07 11:45:27 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 15:52:29 +0100
commit8444efc4a052332d643ed5c8aebcca148c7de032 (patch)
tree90feaa63535b70a263299eeaf4fc0312ab33bc63
parentf8f3e4acbde3dff2e433d02476034606e07ac742 (diff)
downloadop-kernel-dev-8444efc4a052332d643ed5c8aebcca148c7de032.zip
op-kernel-dev-8444efc4a052332d643ed5c8aebcca148c7de032.tar.gz
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 e9195a7..4b87127 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -757,13 +757,11 @@ error:
static void adu_disconnect(struct usb_interface *interface)
{
struct adu_device *dev;
- int minor;
dev = usb_get_intfdata(interface);
mutex_lock(&dev->mtx); /* not interruptible */
dev->udev = NULL; /* poison */
- minor = dev->minor;
usb_deregister_dev(interface, &adu_class);
mutex_unlock(&dev->mtx);
OpenPOWER on IntegriCloud