Linux bluetooth development
 help / color / mirror / Atom feed
From: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Subject: [PATCH_v2 1/7] android: Return right from hal_ipc_cmd call in hal hid connect
Date: Wed, 23 Oct 2013 00:41:53 -0700	[thread overview]
Message-ID: <1382514120-13152-2-git-send-email-ravikumar.veeramally@linux.intel.com> (raw)
In-Reply-To: <1382514120-13152-1-git-send-email-ravikumar.veeramally@linux.intel.com>

Do not print any error message and return from hal_ipc_cmd call in hal
hid connect
---
 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 f941f2f..f7d8cbf 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)
-- 
1.7.9.5


  reply	other threads:[~2013-10-23  7:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  7:41 [PATCH_v2 0/7] Initial code for hal hid host Ravi kumar Veeramally
2013-10-23  7:41 ` Ravi kumar Veeramally [this message]
2013-10-23  7:41 ` [PATCH_v2 2/7] android: Return right from hal_ipc_cmd call in hal hid disconnect Ravi kumar Veeramally
2013-10-23  7:41 ` [PATCH_v2 3/7] android: Add initial code for hidhost virtual unplug Ravi kumar Veeramally
2013-10-23  7:41 ` [PATCH_v2 4/7] android: Add initial code for hidhost get and set protocol Ravi kumar Veeramally
2013-10-23  7:41 ` [PATCH_v2 5/7] android: Add initial code for hidhost get and set report Ravi kumar Veeramally
2013-10-23  7:41 ` [PATCH_v2 6/7] android: Add initial code for hidhost send data Ravi kumar Veeramally
2013-10-23  7:41 ` [PATCH_v2 7/7] android: Add initial code for hidhost set hid information Ravi kumar Veeramally
2013-10-23  7:59 ` [PATCH_v2 0/7] Initial code for hal hid host Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382514120-13152-2-git-send-email-ravikumar.veeramally@linux.intel.com \
    --to=ravikumar.veeramally@linux.intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox