[U-Boot,2/7,RESEND] GCC4.6: Remove unused "port" variable in cmd_usb.c

Submitted by Marek Vasut on Sept. 26, 2011, 12:26 a.m.

Details

Message ID 1316996766-14248-2-git-send-email-marek.vasut@gmail.com
State Accepted
Headers show

Commit Message

Marek Vasut Sept. 26, 2011, 12:26 a.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Remy Bohmer <linux@bohmer.net>
---
 common/cmd_usb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Mike Frysinger Sept. 26, 2011, 3:40 a.m.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike

Patch hide | download patch | download mbox

diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index cd4d417..8c87265 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 */