diff options
author | Julius Werner <jwerner@chromium.org> | 2013-10-17 14:31:36 -0700 |
---|---|---|
committer | Isaac Christensen <isaac.christensen@se-eng.com> | 2014-09-10 19:36:50 +0200 |
commit | 5c85e66b178c4fb4ddc6bcd98d13f43f9ad58792 (patch) | |
tree | 4c965b331ea081a3cf946b5384effee259fd9dfa /payloads/libpayload/drivers/usb | |
parent | 8e7a9e1c4e760d8dc6e688b8c3adb9e0f5b40608 (diff) | |
download | coreboot-5c85e66b178c4fb4ddc6bcd98d13f43f9ad58792.tar.xz |
libpayload: usbhid: Fix typo on descriptor parsing
Forgot an asterisk and everything goes to hell. Sorry about that.
Change-Id: I6b2503ca3ea0f80d4e4e5d8b8c0e986fec5db2c9
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/173587
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Commit-Queue: David James <davidjames@chromium.org>
(cherry picked from commit 2a357560a697b56cc6022a4dd3dda47b33568d83)
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6854
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/drivers/usb')
-rw-r--r-- | payloads/libpayload/drivers/usb/usbhid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/usbhid.c b/payloads/libpayload/drivers/usb/usbhid.c index 7ae40a8b35..74b6d5d591 100644 --- a/payloads/libpayload/drivers/usb/usbhid.c +++ b/payloads/libpayload/drivers/usb/usbhid.c @@ -452,7 +452,7 @@ usb_hid_init (usbdev_t *dev) hid_descriptor_t *desc = malloc(sizeof(hid_descriptor_t)); if (!desc || get_descriptor(dev, gen_bmRequestType( device_to_host, standard_type, iface_recp), - 0x21, 0, desc, sizeof(*desc)) != sizeof(desc)) { + 0x21, 0, desc, sizeof(*desc)) != sizeof(*desc)) { usb_debug ("get_descriptor(HID) failed\n"); usb_detach_device (dev->controller, dev->address); return; |