[alsa-devel] [PATCH] ASoC: txx9: Remove unused rtd variable

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Jan 10 01:09:01 CET 2020


Hi

> Commit a857e073ffc6 ("ASoC: txx9: txx9aclc: remove snd_pcm_ops") removed
> the last use of the rtd variable but didn't remove its definition,
> leading to the following warning/error for MIPS rbtx49xx_defconfig
> builds:
> 
> sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_hw_params':
> sound/soc/txx9/txx9aclc.c:54:30: error: unused variable 'rtd'
>     [-Werror=unused-variable]
>   struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
>                               ^~~
> 
> Resolve this by removing the unused variable.
> 
> Signed-off-by: Paul Burton <paulburton at kernel.org>
> Fixes: a857e073ffc6 ("ASoC: txx9: txx9aclc: remove snd_pcm_ops")
> Cc: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Liam Girdwood <lgirdwood at gmail.com>
> Cc: Jaroslav Kysela <perex at perex.cz>
> Cc: Takashi Iwai <tiwai at suse.com>
> Cc: alsa-devel at alsa-project.org
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>



More information about the Alsa-devel mailing list