* grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return

GRUB_USB_SPEED_NONE in case of failure and not the error code.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-03-23 12:13:39 +01:00
parent d1611f0163
commit ed57e55702
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
GRUB_USB_SPEED_NONE in case of failure and not the error code.
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/efiemu/i386/pc/cfgtables.c * grub-core/efiemu/i386/pc/cfgtables.c

View file

@ -749,8 +749,7 @@ grub_uhci_detect_dev (grub_usb_controller_t dev, int port, int *changed)
else if (port == 1) else if (port == 1)
reg = GRUB_UHCI_REG_PORTSC2; reg = GRUB_UHCI_REG_PORTSC2;
else else
return grub_error (GRUB_ERR_OUT_OF_RANGE, return GRUB_USB_SPEED_NONE;
"UHCI Root Hub port does not exist");
status = grub_uhci_readreg16 (u, reg); status = grub_uhci_readreg16 (u, reg);