All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@codecoup.pl>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] shared/btp: Fix return type in btp_send
Date: Mon, 26 Feb 2018 14:00:46 +0100	[thread overview]
Message-ID: <7414598.jPndJ80TbF@ix> (raw)
In-Reply-To: <20180223134010.20312-1-szymon.janc@codecoup.pl>

On Friday, 23 February 2018 14:40:09 CET Szymon Janc wrote:
> This function returns bool.
> ---
>  src/shared/btp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/shared/btp.c b/src/shared/btp.c
> index 77622671c..555dabc39 100644
> --- a/src/shared/btp.c
> +++ b/src/shared/btp.c
> @@ -297,7 +297,7 @@ bool btp_send(struct btp *btp, uint8_t service, uint8_t
> opcode, uint8_t index, len = sizeof(*hdr) + length;
>  	hdr = l_malloc(len);
>  	if (!hdr)
> -		return NULL;
> +		return false;
> 
>  	hdr->service = service;
>  	hdr->opcode = opcode;

Applied.

-- 
pozdrawiam
Szymon Janc



      parent reply	other threads:[~2018-02-26 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-23 13:40 [PATCH 1/2] shared/btp: Fix return type in btp_send Szymon Janc
2018-02-23 13:40 ` [PATCH 2/2] shared/btp: Allow to call btp_send without valid btp Szymon Janc
2018-02-26 13:00 ` 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=7414598.jPndJ80TbF@ix \
    --to=szymon.janc@codecoup.pl \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.