summaryrefslogtreecommitdiff
path: root/drivers/usb/core/message.c
diff options
context:
space:
mode:
authorKris Borer <kborer@gmail.com>2015-08-26 00:59:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 12:45:11 +0300
commit39047e0702c003d2c4cc1d493d7823407a96e1f5 (patch)
tree1ac7687a6ede479b8c1f48a3df7e644513956226 /drivers/usb/core/message.c
parentcca26be3e68ff2950acda29a5331fe65825034ce (diff)
downloadlinux-39047e0702c003d2c4cc1d493d7823407a96e1f5.tar.xz
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/message.c')
-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 c090f50af102..8e641b5893ed 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,