summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2016-05-03 22:22:59 +0200
committerMarek Vasut <[email protected]>2016-05-06 20:06:56 +0200
commitd81db48d418edc30301961781d8a64d7cc109dd4 (patch)
tree0d1fe43a8672cbec56e89277e73a9dcec2afb8ba
parentef71290be9b70d8cfa63b506c7d93c5069f63c42 (diff)
usb: hub: Don't continue on get_port_status failure
The code shouldn't continue probing the port if get_port_status() failed. Signed-off-by: Marek Vasut <[email protected]> Cc: Chin Liang See <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Stefan Roese <[email protected]> Cc: Stephen Warren <[email protected]>
-rw-r--r--common/usb_hub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c
index 4f59802d591..0f39c9faf7e 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -402,6 +402,7 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
free(usb_scan);
return 0;
}
+ return 0;
}
portstatus = le16_to_cpu(portsts->wPortStatus);