diff options
author | Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com> | 2013-10-23 00:41:54 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-23 10:54:59 +0300 |
commit | 66b6ea20ade8f3ac822c6602951e061e5c3c910f (patch) | |
tree | 8cbef9d1a70c9921389e02fdfd913631eb7039dc /android/hal-hidhost.c | |
parent | 5c12b561556743551d5d1ff356b9773ad1d7e428 (diff) | |
download | bluez-66b6ea20ade8f3ac822c6602951e061e5c3c910f.tar.gz |
android: Return right from hal_ipc_cmd call in hal hid disconnect
Do not print any error message and return from hal_ipc_cmd call in hal
hid disconnect
Diffstat (limited to 'android/hal-hidhost.c')
-rw-r--r-- | android/hal-hidhost.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index c6be7ce26..b51fec61f 100644 --- a/android/hal-hidhost.c +++ b/android/hal-hidhost.c @@ -63,13 +63,8 @@ static bt_status_t hh_disconnect(bt_bdaddr_t *bd_addr) memcpy(cmd.bdaddr, bd_addr, sizeof(cmd.bdaddr)); - if (hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_MSG_OP_BT_HID_DISCONNECT, - sizeof(cmd), &cmd, 0, NULL, NULL) < 0) { - error("Failed to disconnect hid device"); - return BT_STATUS_FAIL; - } - - return BT_STATUS_SUCCESS; + return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_MSG_OP_BT_HID_DISCONNECT, + sizeof(cmd), &cmd, 0, NULL, NULL); } static bt_status_t hh_virtual_unplug(bt_bdaddr_t *bd_addr) |