]> git.sur5r.net Git - u-boot/commitdiff
common/cmd_usb.c: fix warning: variable ... set but not used
authorWolfgang Denk <wd@denx.de>
Wed, 5 Oct 2011 21:01:59 +0000 (23:01 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Oct 2011 21:24:49 +0000 (23:24 +0200)
Fix:
cmd_usb.c: In function 'usb_show_tree_graph':
cmd_usb.c:284:29: warning: variable 'port' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Remy Bohmer <linux@bohmer.net>
common/cmd_usb.c

index cd4d41725063371e9addb9e9e47d12b12cab1134..8c87265668d73715bc1a8f872cc2af8514ac2111 100644 (file)
@@ -281,7 +281,7 @@ static inline char *portspeed(int speed)
 void usb_show_tree_graph(struct usb_device *dev, char *pre)
 {
        int i, index;
-       int has_child, last_child, port;
+       int has_child, last_child;
 
        index = strlen(pre);
        printf(" %s", pre);
@@ -300,7 +300,6 @@ void usb_show_tree_graph(struct usb_device *dev, char *pre)
                                /* found our pointer, see if we have a
                                 * little sister
                                 */
-                               port = i;
                                while (i++ < dev->parent->maxchild) {
                                        if (dev->parent->children[i] != NULL) {
                                                /* found a sister */