* grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
into GRUB-style one.
This commit is contained in:
parent
e804e7b099
commit
b1d2840445
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
|
* grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
|
||||||
|
|
|
@ -70,7 +70,11 @@ static int first_available_slot = 0;
|
||||||
static grub_err_t
|
static grub_err_t
|
||||||
grub_usbms_reset (grub_usb_device_t dev, int interface)
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue