From dd7bec50b5c11e4db436596d9c715be413e8a71f Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 20 May 2023 22:20:42 +0200 Subject: [PATCH] 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 --- sys/usb/usbus/hid/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/usb/usbus/hid/hid.c b/sys/usb/usbus/hid/hid.c index caadde9034..bf1e518077 100644 --- a/sys/usb/usbus/hid/hid.c +++ b/sys/usb/usbus/hid/hid.c @@ -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) {