mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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 <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Stefan Roese <sr@denx.de> Cc: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
ef71290be9
commit
d81db48d41
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue