diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-07 12:45:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-07 15:52:29 +0100 |
commit | 8444efc4a052332d643ed5c8aebcca148c7de032 (patch) | |
tree | 90feaa63535b70a263299eeaf4fc0312ab33bc63 /drivers/usb/misc/adutux.c | |
parent | usb: core: add a new usb_get_ptm_status() helper (diff) | |
download | linux-8444efc4a052332d643ed5c8aebcca148c7de032.tar.xz linux-8444efc4a052332d643ed5c8aebcca148c7de032.zip |
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>
Diffstat (limited to 'drivers/usb/misc/adutux.c')
-rw-r--r-- | drivers/usb/misc/adutux.c | 2 |
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: 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); |