]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: cdns3: Fix Wunused-but-set-variable warning
authorYueHaibing <yuehaibing@huawei.com>
Tue, 3 Sep 2019 12:06:15 +0000 (20:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 13:46:45 +0000 (15:46 +0200)
commitb3d72616b428e28200615dcc7fc5fde04f777d07
treeb6bb75834df3a7d0e4a88f1f70d30c739303f769
parent8ceb1417f3ca3fdc3f093113dcf416b7fa9690eb
usb: cdns3: Fix Wunused-but-set-variable warning

drivers/usb/cdns3/ep0.c: In function cdns3_ep0_feature_handle_device:
drivers/usb/cdns3/ep0.c:290:6: warning: variable wIndex set but not used [-Wunused-but-set-variable]
drivers/usb/cdns3/ep0.c:289:6: warning: variable wValue set but not used [-Wunused-but-set-variable]

wIndex is never used, so remove it.
wValue should be use in the switch statement.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190903120615.19504-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/ep0.c