|
@@ -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 */
|