Use memset
This commit is contained in:
parent
f133a8a74b
commit
5d538b8b4a
1 changed files with 1 additions and 4 deletions
|
@ -105,10 +105,7 @@ grub_usb_clear_halt (grub_usb_device_t dev, int endpoint)
|
||||||
grub_usb_err_t
|
grub_usb_err_t
|
||||||
grub_usb_set_configuration (grub_usb_device_t dev, int configuration)
|
grub_usb_set_configuration (grub_usb_device_t dev, int configuration)
|
||||||
{
|
{
|
||||||
int i;
|
grub_memset (dev->toggle, 0, sizeof (dev->toggle));
|
||||||
|
|
||||||
for (i = 0; i < 256; i++)
|
|
||||||
dev->toggle[i] = 0;
|
|
||||||
|
|
||||||
return grub_usb_control_msg (dev, (GRUB_USB_REQTYPE_OUT
|
return grub_usb_control_msg (dev, (GRUB_USB_REQTYPE_OUT
|
||||||
| GRUB_USB_REQTYPE_STANDARD
|
| GRUB_USB_REQTYPE_STANDARD
|
||||||
|
|
Loading…
Reference in a new issue