From 5622fb0fdae5d1039108848ab98d5060fe3244d4 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Tue, 7 Apr 2015 19:17:54 +0200 Subject: usbh_hubbed: device_register: Don't check for USB_DT_DEVICE twice Signed-off-by: Amir Hammad --- src/usbh_hubbed.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/usbh_hubbed.c') diff --git a/src/usbh_hubbed.c b/src/usbh_hubbed.c index b8fb97c..85051a8 100644 --- a/src/usbh_hubbed.c +++ b/src/usbh_hubbed.c @@ -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"); -- cgit