OSDN Git Service

android: Return right from hal_ipc_cmd call in hal hid connect
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Wed, 23 Oct 2013 07:41:53 +0000 (00:41 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 23 Oct 2013 07:54:25 +0000 (10:54 +0300)
Do not print any error message and return from hal_ipc_cmd call in hal
hid connect

android/hal-hidhost.c

index f941f2f..c6be7ce 100644 (file)
@@ -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)