From: Ravi kumar Veeramally Date: Wed, 23 Oct 2013 07:41:53 +0000 (-0700) Subject: android: Return right from hal_ipc_cmd call in hal hid connect X-Git-Tag: android-x86-4.4-r3~7226 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5c12b561556743551d5d1ff356b9773ad1d7e428;p=android-x86%2Fexternal-bluetooth-bluez.git android: Return right from hal_ipc_cmd call in hal hid connect Do not print any error message and return from hal_ipc_cmd call in hal hid connect --- diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index f941f2f08..c6be7ce26 100644 --- a/android/hal-hidhost.c +++ b/android/hal-hidhost.c @@ -45,13 +45,8 @@ static bt_status_t hh_connect(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_CONNECT, - sizeof(cmd), &cmd, 0, NULL, NULL) < 0) { - error("Failed to connect hid device"); - return BT_STATUS_FAIL; - } - - return BT_STATUS_SUCCESS; + return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_MSG_OP_BT_HID_CONNECT, + sizeof(cmd), &cmd, 0, NULL, NULL); } static bt_status_t hh_disconnect(bt_bdaddr_t *bd_addr)