summaryrefslogtreecommitdiff
path: root/android/hidhost.c
diff options
context:
space:
mode:
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>2014-01-17 01:25:43 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-01-20 16:23:38 +0100
commita2d6586eff6f09e9dadfb15a35585a8d3acf736a (patch)
tree69b765e8cd508d544db949a0b8fc5483a90d8b75 /android/hidhost.c
parent3abb6d368d14e944f06f58acb09dc5fddde969be (diff)
downloadbluez-a2d6586eff6f09e9dadfb15a35585a8d3acf736a.tar.gz
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.
Diffstat (limited to 'android/hidhost.c')
-rw-r--r--android/hidhost.c10
1 files changed, 0 insertions, 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);