From a2d6586eff6f09e9dadfb15a35585a8d3acf736a Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Fri, 17 Jan 2014 01:25:43 +0200 Subject: [PATCH] android/hidhost: Remove unnecessary check HID device will return unsupported or invalid response for unsupported or invalid get/set protocol request. Need not to check prior to that. --- android/hidhost.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/android/hidhost.c b/android/hidhost.c index c2a3dc43c..3da77c856 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -899,11 +899,6 @@ static void bt_hid_get_protocol(const void *buf, uint16_t len) dev = l->data; - if (dev->boot_dev) { - status = HAL_STATUS_UNSUPPORTED; - goto failed; - } - hdr = HID_MSG_GET_PROTOCOL | cmd->mode; fd = g_io_channel_unix_get_fd(dev->ctrl_io); @@ -954,11 +949,6 @@ static void bt_hid_set_protocol(const void *buf, uint16_t len) dev = l->data; - if (dev->boot_dev) { - status = HAL_STATUS_UNSUPPORTED; - goto failed; - } - hdr = HID_MSG_SET_PROTOCOL | cmd->mode; fd = g_io_channel_unix_get_fd(dev->ctrl_io); -- 2.47.3