From: Mat Martineau <mathewm@codeaurora.org>
To: Gustavo Padovan <gustavo@padovan.org>, marcel@holtmann.org
Cc: linux-bluetooth@vger.kernel.org,
Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Subject: Re: [PATCH -v3 2/2] Bluetooth: Remove unused err var from l2cap_segment_sdu()
Date: Wed, 30 May 2012 14:35:21 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.02.1205301433560.16153@mathewm-linux> (raw)
In-Reply-To: <1338308957-17282-2-git-send-email-gustavo@padovan.org>
Gustavo -
On Tue, 29 May 2012, Gustavo Padovan wrote:
> From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
>
> Trivial fix, let the code cleaner.
>
> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> ---
> net/bluetooth/l2cap_core.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index acd43aa..db54e2d 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -2067,7 +2067,6 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan,
> struct sk_buff *skb;
> u16 sdu_len;
> size_t pdu_len;
> - int err = 0;
> u8 sar;
>
> BT_DBG("chan %p, msg %p, len %d", chan, msg, (int)len);
> @@ -2126,7 +2125,7 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan,
> }
> }
>
> - return err;
> + return 0;
> }
>
> int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
> --
> 1.7.10.2
This is fine. I have some other changes for l2cap_segment_sdu, but
they don't use the err variable either.
Reviewed-by: Mat Martineau <mathewm@codeaurora.org>
--
Mat Martineau
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next prev parent reply other threads:[~2012-05-30 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 16:29 [PATCH -v3 1/2] Bluetooth: Create function to return the ERTM header size Gustavo Padovan
2012-05-29 16:29 ` [PATCH -v3 2/2] Bluetooth: Remove unused err var from l2cap_segment_sdu() Gustavo Padovan
2012-05-30 21:35 ` Mat Martineau [this message]
2012-05-30 21:33 ` [PATCH -v3 1/2] Bluetooth: Create function to return the ERTM header size Mat Martineau
2012-05-31 7:45 ` Andrei Emeltchenko
2012-05-31 13:58 ` 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=alpine.DEB.2.02.1205301433560.16153@mathewm-linux \
--to=mathewm@codeaurora.org \
--cc=gustavo.padovan@collabora.co.uk \
--cc=gustavo@padovan.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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