Skip to content
Snippets Groups Projects
Commit 10f4dd78 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: default avatarRemy Bohmer <linux@bohmer.net>
parent bf513c2d
No related branches found
No related tags found
No related merge requests found
...@@ -281,7 +281,7 @@ static inline char *portspeed(int speed) ...@@ -281,7 +281,7 @@ static inline char *portspeed(int speed)
void usb_show_tree_graph(struct usb_device *dev, char *pre) void usb_show_tree_graph(struct usb_device *dev, char *pre)
{ {
int i, index; int i, index;
int has_child, last_child, port; int has_child, last_child;
index = strlen(pre); index = strlen(pre);
printf(" %s", pre); printf(" %s", pre);
...@@ -300,7 +300,6 @@ void usb_show_tree_graph(struct usb_device *dev, char *pre) ...@@ -300,7 +300,6 @@ void usb_show_tree_graph(struct usb_device *dev, char *pre)
/* found our pointer, see if we have a /* found our pointer, see if we have a
* little sister * little sister
*/ */
port = i;
while (i++ < dev->parent->maxchild) { while (i++ < dev->parent->maxchild) {
if (dev->parent->children[i] != NULL) { if (dev->parent->children[i] != NULL) {
/* found a sister */ /* found a sister */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment