usbh_hubbed: device_register: Don't check for USB_DT_DEVICE twice
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
0827b6982b
commit
5622fb0fda
1 changed files with 0 additions and 9 deletions
|
|
@ -115,15 +115,6 @@ static void device_register(void *descriptors, uint16_t descriptors_len, usbh_de
|
|||
desc_len = buf[i];
|
||||
desc_type = buf[i + 1];
|
||||
switch (desc_type) {
|
||||
case USB_DT_DEVICE:
|
||||
{
|
||||
struct usb_device_descriptor *device_desc = (void*)&buf[i];
|
||||
LOG_PRINTF("DEVICE DESCRIPTOR");
|
||||
device_info.deviceClass = device_desc->bDeviceClass;
|
||||
device_info.deviceSubClass = device_desc->bDeviceSubClass;
|
||||
}
|
||||
break;
|
||||
|
||||
case USB_DT_INTERFACE:
|
||||
{
|
||||
LOG_PRINTF("INTERFACE_DESCRIPTOR\r\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue