diff options
Diffstat (limited to 'hw/usb/hid-logitech-dj.c')
-rw-r--r-- | hw/usb/hid-logitech-dj.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c index 6de5fa4ba1..51be0e2410 100644 --- a/hw/usb/hid-logitech-dj.c +++ b/hw/usb/hid-logitech-dj.c @@ -399,20 +399,8 @@ static void hidpp_process_device_hidpp20(USBLtunifyState *s, HidppMsg *msg) { LHidDevice *hd = &s->devices[msg->device_index - 1]; Hidpp20Msg *func = (Hidpp20Msg *) msg; - uint8_t fn = func->func >> 4; int r; - if (func->feat_index == 0) { /* IRoot */ - if (fn == 1) { /* GetProtocolVersion */ - func->params_s[0] = (uint8_t) (hd->info.protocol_version >> 8); - func->params_s[1] = (uint8_t) hd->info.protocol_version; - hidpp_queue_output_report(s, msg); - } else { - hidpp20_queue_error(s, func, HIDPP20_ERR_CODE_INVALID_FUNCTION_ID); - } - return; - } - r = hidpp20_feature_call(hd, func); /* note: if r == 0, then the function is void and there is no output */ if (r > 0) { |