RE: [PATCH 3/3] tools/hciattach_ath3k: Remove dead code warnings

[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: Wednesday, January 14, 2015 3:28 PM
> To: linux-bluetooth@xxxxxxxxxxxxxxx
> Cc: bharat.panda@xxxxxxxxxxx; cpgs@xxxxxxxxxxx; Gowtham Anandha
> Babu
> Subject: [PATCH 3/3] tools/hciattach_ath3k: Remove dead code warnings
> 
> tools/hciattach_ath3k.c:848:3: warning: Value stored to 'err' is never
read
>                 err = 0;
>                 ^     ~
> tools/hciattach_ath3k.c:852:3: warning: Value stored to 'err' is never
read
>                 err = 0;
>                 ^     ~
> ---
>  tools/hciattach_ath3k.c | 11 +----------
>  1 file changed, 1 insertion(+), 10 deletions(-)
> 
> diff --git a/tools/hciattach_ath3k.c b/tools/hciattach_ath3k.c index
> 23208c6..d31732e 100644
> --- a/tools/hciattach_ath3k.c
> +++ b/tools/hciattach_ath3k.c
> @@ -840,17 +840,8 @@ static int ath_ps_download(int fd)
>  		goto download_cmplete;
>  	}
> 
> -	/*
> -	 * It is not necessary that Patch file be available,
> -	 * continue with PS Operations if patch file is not available.
> -	 */
> -	if (patch_file[0] == '\0')
> -		err = 0;
> -
>  	stream = fopen(patch_file, "r");
> -	if (!stream)
> -		err = 0;
> -	else {
> +	if(stream) {
>  		patch_count = ps_patch_download(fd, stream);
>  		fclose(stream);
> 
> --
> 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