]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 23 Mar 2011 11:13:39 +0000 (12:13 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 23 Mar 2011 11:13:39 +0000 (12:13 +0100)
GRUB_USB_SPEED_NONE in case of failure and not the error code.

ChangeLog
grub-core/bus/usb/uhci.c

index 1f7de420e29f21b31600bb267152cc206631680b..d1d946075c53b2ddf882701dba0bc32b98e214dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/efiemu/i386/pc/cfgtables.c
index d082beac4401400100120febea4f5829222a5d62..71142846b005fd2ca74596de33bcc8673f191bb9 100644 (file)
@@ -749,8 +749,7 @@ grub_uhci_detect_dev (grub_usb_controller_t dev, int port, int *changed)
   else if (port == 1)
     reg = GRUB_UHCI_REG_PORTSC2;
   else
-    return grub_error (GRUB_ERR_OUT_OF_RANGE,
-                      "UHCI Root Hub port does not exist");
+    return GRUB_USB_SPEED_NONE;
 
   status = grub_uhci_readreg16 (u, reg);