Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Claudio Takahasi <claudio.takahasi@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v3 03/12] Move legacy verification to a new function
Date: Tue, 17 May 2011 09:13:26 -0700	[thread overview]
Message-ID: <20110517161326.GA20885@dell.ice.intel.com> (raw)
In-Reply-To: <1305579001-3019-3-git-send-email-claudio.takahasi@openbossa.org>

Hi Claudio,

On Mon, May 16, 2011, Claudio Takahasi wrote:
> ---
>  src/adapter.c |   40 ++++++++++++++++++++++++++++------------
>  1 files changed, 28 insertions(+), 12 deletions(-)
> 
> diff --git a/src/adapter.c b/src/adapter.c
> index 3188974..6f85abf 100644
> --- a/src/adapter.c
> +++ b/src/adapter.c
> @@ -3002,6 +3002,31 @@ void adapter_update_device_from_info(struct btd_adapter *adapter,
>  	adapter_emit_device_found(adapter, dev);
>  }
>  
> +static int pairing_is_legacy(bdaddr_t *local, bdaddr_t *peer, gboolean eir,
> +					gboolean name, gboolean *legacy)
> +{

The first two patches in this set have been pushed upstream, however
could you consider the following change to this one: since you just
assume legacy == TRUE if the storage read fails, why not just make this
pairing_is_legacy function return a gboolean instead of returning the
value by reference? (it's look cleaner, especially considering the name
of the function)

Johan

  reply	other threads:[~2011-05-17 16:13 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16 20:49 [PATCH v3 01/12] Move EIR related functions to a new file Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 02/12] Initial device found cleanup Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 03/12] Move legacy verification to a new function Claudio Takahasi
2011-05-17 16:13   ` Johan Hedberg [this message]
2011-05-17 18:25     ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:18       ` Claudio Takahasi
2011-05-18 19:38         ` [PATCH v5 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 04/12] Cleanup read name and alias from storage Claudio Takahasi
2011-05-17 18:25   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:38     ` [PATCH v5 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 05/12] Don't resolve name if the name is in the storage Claudio Takahasi
2011-05-17 18:25   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:38     ` [PATCH v5 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 06/12] Unify inquiry results and advertises Claudio Takahasi
2011-05-17 18:25   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:39     ` [PATCH v5 " Claudio Takahasi
2011-05-18 20:53       ` Johan Hedberg
2011-05-18 21:33         ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 07/12] Fix memory leak of EIR data Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:39     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:33       ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 08/12] Remove btd_event_advertising_report Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:39     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:33       ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 09/12] Change the order to write/read the remote's name Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:39     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:33       ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:49 ` [PATCH v3 10/12] Cleanup inserting new device found entry Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:39     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:34       ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:50 ` [PATCH v3 11/12] Replace EIR_DATA_LENGTH with HCI_MAX_EIR_LENGTH Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:40     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:34       ` [PATCH v6 " Claudio Takahasi
2011-05-16 20:50 ` [PATCH v3 12/12] Drop variable EIR length Claudio Takahasi
2011-05-17 18:26   ` [PATCH v4 " Claudio Takahasi
2011-05-18 19:40     ` [PATCH v5 " Claudio Takahasi
2011-05-18 21:34       ` [PATCH v6 " Claudio Takahasi
2011-05-18 23:49         ` 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=20110517161326.GA20885@dell.ice.intel.com \
    --to=johan.hedberg@gmail.com \
    --cc=claudio.takahasi@openbossa.org \
    --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