OSDN Git Service

ASoC: wm9712: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 19:37:40 +0000 (21:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:49:56 +0000 (14:49 +0100)
commit08e7931218521d61594e5b2ba9dea68dd9a3f13b
tree1fef2f293cbf4b16afc1cb7a5120b6d2391199e0
parentbce5c4c3038cd26e7d7f00dd702aedefae6542a3
ASoC: wm9712: fix unused variable warning

[ Upstream commit 18380dcc52cc8965e5144ce33fdfad7e168679a5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm9712.c