]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: wm9712: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 19:37:40 +0000 (21:37 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 27 Sep 2018 22:22:54 +0000 (23:22 +0100)
commit18380dcc52cc8965e5144ce33fdfad7e168679a5
tree4c040efa11b4e0514c2b291048b1eaed2f6a948d
parent53c156ab9d8aae2083d3c895365a3e39b864a5a7
ASoC: wm9712: fix unused variable warning

The 'ret' variable is now only used in an #ifdef, and causes a
warning if it is declared outside of that block:

sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe':
sound/soc/codecs/wm9712.c:641:6: error: unused variable 'ret' [-Werror=unused-variable]

Fixes: 2ed1a8e0ce8d ("ASoC: wm9712: add ac97 new bus support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm9712.c