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

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).