From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] shared/hfp: Remove dead code
Date: Wed, 7 Jan 2015 11:17:19 +0200 [thread overview]
Message-ID: <20150107091314.GA11678@aemeltch-MOBL1> (raw)
In-Reply-To: <1419254211-6211-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>
ping
On Mon, Dec 22, 2014 at 03:16:51PM +0200, Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
>
> Remove dead code since free_tmp initialized to false.
> ---
> src/shared/hfp.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/src/shared/hfp.c b/src/shared/hfp.c
> index 9d937a5..05a8563 100644
> --- a/src/shared/hfp.c
> +++ b/src/shared/hfp.c
> @@ -1192,10 +1192,6 @@ static void hf_process_input(struct hfp_hf *hfp)
> if (len == ringbuf_len(hfp->read_buf))
> goto done;
>
> - /* If we are here second time for some reason, that is wrong */
> - if (free_tmp)
> - goto done;
> -
> str2 = ringbuf_peek(hfp->read_buf, len, &len2);
> if (!str2)
> goto done;
> --
> 2.1.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-07 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 13:16 [PATCH] shared/hfp: Remove dead code Andrei Emeltchenko
2015-01-07 9:17 ` Andrei Emeltchenko [this message]
2015-01-07 9:51 ` 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=20150107091314.GA11678@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.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