linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/bccmd: Remove dead code
@ 2014-12-19 13:32 Gowtham Anandha Babu
  2015-01-07  9:54 ` Gowtham Anandha Babu
  2015-01-08  9:51 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Gowtham Anandha Babu @ 2014-12-19 13:32 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: d.kasatkin, bharat.panda, cpgs, Gowtham Anandha Babu

warning: Value stored to 'handle' is never read
        handle = array[0] | (array[1] << 8);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 tools/bccmd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/bccmd.c b/tools/bccmd.c
index 4649ad5..2646660 100644
--- a/tools/bccmd.c
+++ b/tools/bccmd.c
@@ -279,7 +279,6 @@ static int cmd_keylen(int transport, int argc, char *argv[])
 	if (err < 0)
 		return -1;
 
-	handle = array[0] | (array[1] << 8);
 	keylen = array[2] | (array[3] << 8);
 
 	printf("Crypt key length: %d bit\n", keylen * 8);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] tools/bccmd: Remove dead code
  2014-12-19 13:32 [PATCH] tools/bccmd: Remove dead code Gowtham Anandha Babu
@ 2015-01-07  9:54 ` Gowtham Anandha Babu
  2015-01-08  9:51 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Gowtham Anandha Babu @ 2015-01-07  9:54 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: bharat.panda, cpgs

Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> Sent: Friday, December 19, 2014 7:02 PM
> To: linux-bluetooth@vger.kernel.org
> Cc: d.kasatkin@samsung.com; bharat.panda@samsung.com;
> cpgs@samsung.com; Gowtham Anandha Babu
> Subject: [PATCH] tools/bccmd: Remove dead code
> 
> warning: Value stored to 'handle' is never read
>         handle = array[0] | (array[1] << 8);
>         ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
> ---
>  tools/bccmd.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/bccmd.c b/tools/bccmd.c index 4649ad5..2646660 100644
> --- a/tools/bccmd.c
> +++ b/tools/bccmd.c
> @@ -279,7 +279,6 @@ static int cmd_keylen(int transport, int argc, char
> *argv[])
>  	if (err < 0)
>  		return -1;
> 
> -	handle = array[0] | (array[1] << 8);
>  	keylen = array[2] | (array[3] << 8);
> 
>  	printf("Crypt key length: %d bit\n", keylen * 8);
> --
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools/bccmd: Remove dead code
  2014-12-19 13:32 [PATCH] tools/bccmd: Remove dead code Gowtham Anandha Babu
  2015-01-07  9:54 ` Gowtham Anandha Babu
@ 2015-01-08  9:51 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2015-01-08  9:51 UTC (permalink / raw)
  To: Gowtham Anandha Babu; +Cc: linux-bluetooth, d.kasatkin, bharat.panda, cpgs

Hi Gowtham,

On Fri, Dec 19, 2014, Gowtham Anandha Babu wrote:
> warning: Value stored to 'handle' is never read
>         handle = array[0] | (array[1] << 8);
>         ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
> ---
>  tools/bccmd.c | 1 -
>  1 file changed, 1 deletion(-)

Applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-08  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19 13:32 [PATCH] tools/bccmd: Remove dead code Gowtham Anandha Babu
2015-01-07  9:54 ` Gowtham Anandha Babu
2015-01-08  9:51 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).