mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
USB: adutux: remove redundant variable minor
commit 8444efc4a0 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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a656cabbe0
commit
89121c7173
@@ -789,13 +789,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user