1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/usb/usbus_hid: fix compilation with clang

Well, it is actually a cosmetic issue. But I agree with clang that it
is ugly enough to refuse compiling over it :D
This commit is contained in:
Marian Buschsieweke 2023-05-20 22:20:42 +02:00 committed by Marian Buschsieweke
parent a4e4c1f2a7
commit dd7bec50b5
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -188,7 +188,7 @@ static int _control_handler(usbus_t *usbus, usbus_handler_t *handler,
case USB_HID_REQUEST_GET_PROTOCOL:
break;
case USB_HID_REQUEST_SET_REPORT:
if ((state == USBUS_CONTROL_REQUEST_STATE_OUTDATA)) {
if (state == USBUS_CONTROL_REQUEST_STATE_OUTDATA) {
size_t size = 0;
uint8_t *data = usbus_control_get_out_data(usbus, &size);
if (size > 0) {