Skip to content

Commit

Permalink
usb: message: remove redundant declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kris Borer authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent cca26be commit 39047e0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/core/message.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 39047e0

Please sign in to comment.