All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gowtham Anandha Babu <gowtham.ab@samsung.com>
To: linux-bluetooth@vger.kernel.org
Cc: bharat.panda@samsung.com, cpgs@samsung.com
Subject: RE: [PATCH] Bluetooth: Remove dead code
Date: Tue, 13 Jan 2015 12:22:58 +0530	[thread overview]
Message-ID: <000401d02efd$92b05e60$b8111b20$@samsung.com> (raw)
In-Reply-To: <1420466575-14615-1-git-send-email-gowtham.ab@samsung.com>



Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> Sent: Monday, January 05, 2015 7:33 PM
> To: linux-bluetooth@vger.kernel.org
> Cc: bharat.panda@samsung.com; cpgs@samsung.com; Gowtham Anandha
> Babu
> Subject: [PATCH] Bluetooth: Remove dead code
> 
> Variable 'controller' is assigned a value that is never used.
> Identified by cppcheck tool.
> 
> Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
> ---
>  net/bluetooth/cmtp/capi.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c index
> 1ca8a87..75bd2c4 100644
> --- a/net/bluetooth/cmtp/capi.c
> +++ b/net/bluetooth/cmtp/capi.c
> @@ -253,8 +253,6 @@ static void cmtp_recv_interopmsg(struct
> cmtp_session *session, struct sk_buff *s
>  			if (skb->len < CAPI_MSG_BASELEN + 15)
>  				break;
> 
> -			controller = CAPIMSG_U32(skb->data,
> CAPI_MSG_BASELEN + 10);
> -
>  			if (!info && ctrl) {
>  				int len = min_t(uint,
> CAPI_MANUFACTURER_LEN,
>  						skb-
> >data[CAPI_MSG_BASELEN + 14]); @@ -270,8 +268,6 @@ static void
> cmtp_recv_interopmsg(struct cmtp_session *session, struct sk_buff *s
>  			if (skb->len < CAPI_MSG_BASELEN + 32)
>  				break;
> 
> -			controller = CAPIMSG_U32(skb->data,
> CAPI_MSG_BASELEN + 12);
> -
>  			if (!info && ctrl) {
>  				ctrl->version.majorversion =
> CAPIMSG_U32(skb->data, CAPI_MSG_BASELEN + 16);
>  				ctrl->version.minorversion =
> CAPIMSG_U32(skb->data, CAPI_MSG_BASELEN + 20); @@ -285,8 +281,6
> @@ static void cmtp_recv_interopmsg(struct cmtp_session *session, struct
> sk_buff *s
>  			if (skb->len < CAPI_MSG_BASELEN + 17)
>  				break;
> 
> -			controller = CAPIMSG_U32(skb->data,
> CAPI_MSG_BASELEN + 12);
> -
>  			if (!info && ctrl) {
>  				int len = min_t(uint, CAPI_SERIAL_LEN,
>  						skb-
> >data[CAPI_MSG_BASELEN + 16]);
> --
> 1.9.1
> 
> --
> 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


  reply	other threads:[~2015-01-13  6:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-05 14:02 [PATCH] Bluetooth: Remove dead code Gowtham Anandha Babu
2015-01-13  6:52 ` Gowtham Anandha Babu [this message]
2015-01-14  9:21 ` 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='000401d02efd$92b05e60$b8111b20$@samsung.com' \
    --to=gowtham.ab@samsung.com \
    --cc=bharat.panda@samsung.com \
    --cc=cpgs@samsung.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 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.