projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca26be
)
usb: message: remove redundant declaration
author
Kris Borer
<kborer@gmail.com>
Tue, 25 Aug 2015 21:59:49 +0000
(17:59 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 09:45:11 +0000
(10:45 +0100)
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>
drivers/usb/core/message.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/message.c
b/drivers/usb/core/message.c
index c090f50af1021a363ca7207d83944c63a79f1db7..8e641b5893edb7a6195c34e43248540fbff39aa6 100644
(file)
--- 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,