Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] android/gatt: Remove redundant find function parameter
Date: Wed, 30 Apr 2014 11:22:48 +0200	[thread overview]
Message-ID: <5203543.5rAnQQMj8k@uw000953> (raw)
In-Reply-To: <1398767468-15966-1-git-send-email-jakub.tyszkowski@tieto.com>

Hi Jakub,

On Tuesday 29 of April 2014 12:31:08 Jakub Tyszkowski wrote:
> As client and server apps id is guaranteed to be unique, there is no
> need for this search function parameter.
> ---
>  android/gatt.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/android/gatt.c b/android/gatt.c
> index 0e81e7d..b2c1a02 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -1242,8 +1242,7 @@ static void handle_client_unregister(const void *buf, uint16_t len)
>  					HAL_OP_GATT_CLIENT_UNREGISTER, status);
>  }
>  
> -static struct app_connection *find_conn(const bdaddr_t *addr, int32_t app_id,
> -							int32_t app_type)
> +static struct app_connection *find_conn(const bdaddr_t *addr, int32_t app_id)
>  {
>  	struct app_connection conn_match;
>  	struct gatt_device *dev = NULL;
> @@ -2875,7 +2874,7 @@ static void handle_client_register_for_notification(const void *buf,
>  
>  	android2bdaddr(&cmd->bdaddr, &addr);
>  
> -	conn = find_conn(&addr, cmd->client_if, APP_CLIENT);
> +	conn = find_conn(&addr, cmd->client_if);
>  	if (!conn) {
>  		status = HAL_STATUS_FAILED;
>  		goto failed;
> @@ -2980,7 +2979,7 @@ static void handle_client_deregister_for_notification(const void *buf,
>  
>  	android2bdaddr(&cmd->bdaddr, &addr);
>  
> -	conn = find_conn(&addr, cmd->client_if, APP_CLIENT);
> +	conn = find_conn(&addr, cmd->client_if);
>  	if (!conn) {
>  		status = HAL_STATUS_FAILED;
>  		goto failed;
> 

Applied, thanks.

-- 
Best regards, 
Szymon Janc

      reply	other threads:[~2014-04-30  9:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-29 10:31 [PATCH] android/gatt: Remove redundant find function parameter Jakub Tyszkowski
2014-04-30  9:22 ` Szymon Janc [this message]

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=5203543.5rAnQQMj8k@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=jakub.tyszkowski@tieto.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