Re: [PATCH -next] ASoC: simple-card-utils: remove set but not used variable ''

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

 



Hi

> Fixes gcc '-Wunused-but-set-variable' warning:
> 
> sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk':
> sound/soc/generic/simple-card-utils.c:164:18: warning:
>  parameter 'dai_name' set but not used [-Wunused-but-set-parameter]
> 
> It's not used since commit 0580dde59438 ("ASoC: simple-card-utils: add
> asoc_simple_debug_info()"), so can be removed.
> 
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---

I think dai_name parameter itself is no longer needed for this function,
but, it will be removed if all driver switched to modern dai_link style.
So, it is not a big deal.

	Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

Best regards
---
Kuninori Morimoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux