]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2562: Propagate the error in tas2562_dac_event()
authorFabio Estevam <festevam@denx.de>
Tue, 13 Sep 2022 23:17:06 +0000 (20:17 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 14 Sep 2022 09:39:27 +0000 (10:39 +0100)
commit15d0532d8f07c5c0322d8e7fe45a3b3440b2303b
treebac06e147c8becc3c481014cbbcf6b0ba6c56340
parent23f71ac04315bbf44695831ca2a61807ad6c218b
ASoC: tas2562: Propagate the error in tas2562_dac_event()

Since commit 4a008c8369d1 ("ASoC: tas2562: Fix mute/unmute") the
following build warning is seen:

sound/soc/codecs/tas2562.c:442:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Fix the warning by returning the 'ret' variable.

Fixes: 4a008c8369d1 ("ASoC: tas2562: Fix mute/unmute")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Martin PoviĊĦer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220913231706.516849-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c