diff options
author | Wolfgang Denk <wd@denx.de> | 2011-10-06 01:01:59 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-10 01:24:49 +0400 |
commit | 10f4dd784f7738c1207ba84b4712ac26c155be43 (patch) | |
tree | 3af8bc20f918c6872f7f53f7dbd9f3bd8438880c /common | |
parent | bf513c2d752f233a9027c42b94b143de670c21ae (diff) | |
download | u-boot-10f4dd784f7738c1207ba84b4712ac26c155be43.tar.xz |
common/cmd_usb.c: fix warning: variable ... set but not used
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c index cd4d417250..8c87265668 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -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 */ |