usb: message: remove redundant declaration
authorKris Borer <kborer@gmail.com>
Tue, 25 Aug 2015 21:59:49 +0000 (17:59 -0400)
committerGreg 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

index c090f50af1021a363ca7207d83944c63a79f1db7..8e641b5893edb7a6195c34e43248540fbff39aa6 100644 (file)
@@ -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,
This page took 0.025455 seconds and 5 git commands to generate.