fix(drivers/usb): remove unnecessary cast

Remove the unnecessary cast on the result of function which
already return the correct type.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ie21f7e78a880d30d1f31e32b3d2c3fb09489d65b
This commit is contained in:
Patrick Delaunay 2021-11-04 14:39:28 +01:00
parent 89ff55fef4
commit 025f5ef201
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ static void usb_core_get_desc(struct usb_handle *pdev, struct usb_setup_req *req
break;
case USB_DESC_TYPE_CONFIGURATION:
pbuf = (uint8_t *)pdev->desc->get_config_desc(&len);
pbuf = pdev->desc->get_config_desc(&len);
pbuf[1] = USB_DESC_TYPE_CONFIGURATION;
break;
@ -112,11 +112,11 @@ static void usb_core_get_desc(struct usb_handle *pdev, struct usb_setup_req *req
break;
case USB_DESC_TYPE_DEVICE_QUALIFIER:
pbuf = (uint8_t *)pdev->desc->get_device_qualifier_desc(&len);
pbuf = pdev->desc->get_device_qualifier_desc(&len);
break;
case USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION:
pbuf = (uint8_t *)pdev->desc->get_config_desc(&len);
pbuf = pdev->desc->get_config_desc(&len);
pbuf[1] = USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION;
break;