ASoC: madera: Correct error path handling in madera_out1_demux_put
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 14 Jan 2020 16:18:40 +0000 (16:18 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jan 2020 15:30:06 +0000 (15:30 +0000)
commit4061fdc89ff7704a71dc6df8e5841f861138e7e1
tree63d5836e1a8c3ac4a1189cea03b6f51dc7beb189
parentdf4e3eee310fb66e5f17aa651183b94d0d152650
ASoC: madera: Correct error path handling in madera_out1_demux_put

Should the write to MADERA_OUTPUT_ENABLES_1 fail and out_clamp[0] not be
set an additional error message will be printed. Clear the ret variable
to avoid this.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200114161841.451-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/madera.c