Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH_v2 2/7] android: Return right from hal_ipc_cmd call in hal hid disconnect Date: Wed, 23 Oct 2013 00:41:54 -0700 Message-Id: <1382514120-13152-3-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1382514120-13152-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1382514120-13152-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Do not print any error message and return from hal_ipc_cmd call in hal hid disconnect --- android/hal-hidhost.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index f7d8cbf..1f54bc4 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) -- 1.7.9.5