summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorKris Borer <kborer@gmail.com>2015-08-25 17:59:49 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 10:45:11 +0100
commit39047e0702c003d2c4cc1d493d7823407a96e1f5 (patch)
tree1ac7687a6ede479b8c1f48a3df7e644513956226 /drivers/usb/core
parentcca26be3e68ff2950acda29a5331fe65825034ce (diff)
downloadop-kernel-dev-39047e0702c003d2c4cc1d493d7823407a96e1f5.zip
op-kernel-dev-39047e0702c003d2c4cc1d493d7823407a96e1f5.tar.gz
usb: message: remove redundant declaration
Fix the Sparse warning: message.c:1390:21: warning: symbol 'i' shadows an earlier one message.c:1294:13: originally declared here Signed-off-by: Kris Borer <kborer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/message.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index c090f50..8e641b5 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1387,8 +1387,6 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate)
* new altsetting.
*/
if (manual) {
- int i;
-
for (i = 0; i < alt->desc.bNumEndpoints; i++) {
epaddr = alt->endpoint[i].desc.bEndpointAddress;
pipe = __create_pipe(dev,
OpenPOWER on IntegriCloud