clean up warnings

This commit is contained in:
hathach
2018-11-26 12:25:28 +07:00
parent 4ec7dba453
commit 064eec5dd8
13 changed files with 36 additions and 28 deletions

View File

@@ -418,7 +418,6 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_reque
if (p_request->bRequest == TUSB_REQ_GET_DESCRIPTOR && desc_type == HID_DESC_TYPE_REPORT)
{
// Cast away the const on p_hid->desc_report because we know it won't be modified.
usbd_control_xfer(rhport, p_request, (void *)p_hid->desc_report, p_hid->desc_len);
}else
{