* grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error

into GRUB-style one.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-03-23 12:21:15 +01:00
parent e804e7b099
commit b1d2840445
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
into GRUB-style one.
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style

View file

@ -70,7 +70,11 @@ static int first_available_slot = 0;
static grub_err_t
grub_usbms_reset (grub_usb_device_t dev, int interface)
{
return grub_usb_control_msg (dev, 0x21, 255, 0, interface, 0, 0);
grub_usb_err_t u;
u = grub_usb_control_msg (dev, 0x21, 255, 0, interface, 0, 0);
if (u)
return grub_error (GRUB_ERR_IO, "USB error %d", u);
return GRUB_ERR_NONE;
}
static void