lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5htx08dw1q.wl-tiwai@suse.de>
Date:	Sat, 03 Jan 2015 10:59:29 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	Chen Gang <gang.chen@...rus.com.cn>
Cc:	lgirdwood@...il.com, broonie@...nel.org, perex@...ex.cz,
	alsa-devel@...a-project.org,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sound: soc: soc-pcm: Remove useless varialbe 'i'

At Sat, 03 Jan 2015 17:45:57 +0800,
Chen Gang wrote:
> 
> 'i' is useless in soc_pcm_set_msb(), so remove it, the related warning
> (with allmodconfig under s390):
> 
>     CC [M]  sound/soc/soc-pcm.o
>   sound/soc/soc-pcm.c: In function 'soc_pcm_set_msb':
>   sound/soc/soc-pcm.c:307:11: warning: unused variable 'i' [-Wunused-variable]
>     int ret, i;
>              ^

Thanks, but this was already fixed.


Takashi

> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
> ---
>  sound/soc/soc-pcm.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
> index d6e8d6b..6b0136e 100644
> --- a/sound/soc/soc-pcm.c
> +++ b/sound/soc/soc-pcm.c
> @@ -304,7 +304,7 @@ static bool soc_pcm_has_symmetry(struct snd_pcm_substream *substream)
>  static void soc_pcm_set_msb(struct snd_pcm_substream *substream, int bits)
>  {
>  	struct snd_soc_pcm_runtime *rtd = substream->private_data;
> -	int ret, i;
> +	int ret;
>  
>  	if (!bits)
>  		return;
> -- 
> 1.7.9.5
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ