RE: [PATCH] tools/bccmd: Remove dead code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Gowtham Anandha Babu
> Sent: Friday, December 19, 2014 7:02 PM
> To: linux-bluetooth@xxxxxxxxxxxxxxx
> Cc: d.kasatkin@xxxxxxxxxxx; bharat.panda@xxxxxxxxxxx;
> cpgs@xxxxxxxxxxx; 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@xxxxxxxxxxxxxxx More majordomo
> info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux