aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/isp1760/isp1760-hcd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-13 10:51:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-13 15:41:56 +0200
commit260560322616472e3e26ece9e9bd044b19031c6c (patch)
tree38feec76d76e1c07bc7f71eb9f1fe2136d138bf0 /drivers/usb/isp1760/isp1760-hcd.c
parentusb-misc: sisusbvga: remove redundant variable modey (diff)
downloadlinux-dev-260560322616472e3e26ece9e9bd044b19031c6c.tar.xz
linux-dev-260560322616472e3e26ece9e9bd044b19031c6c.zip
usb: isp1760: remove redundant variable 'selector'
Variable 'selector' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'selector' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/isp1760/isp1760-hcd.c')
-rw-r--r--drivers/usb/isp1760/isp1760-hcd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
index 1045521be293..8142c6b4c4cf 100644
--- a/drivers/usb/isp1760/isp1760-hcd.c
+++ b/drivers/usb/isp1760/isp1760-hcd.c
@@ -1817,7 +1817,6 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
u32 temp, status;
unsigned long flags;
int retval = 0;
- unsigned selector;
/*
* FIXME: support SetPortFeatures USB_PORT_FEAT_INDICATOR.
@@ -2010,7 +2009,6 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
}
break;
case SetPortFeature:
- selector = wIndex >> 8;
wIndex &= 0xff;
if (!wIndex || wIndex > ports)
goto error;