mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
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:
parent
89ff55fef4
commit
025f5ef201
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue