From: Pierre-Louis Bossart Date: Thu, 21 Apr 2022 16:23:28 +0000 (-0500) Subject: ASoC: soc-ops: fix error handling X-Git-Tag: v6.1-rc5~1398^2~8^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb5773201b1c5d603424bd21f161c8c2d1075b42;p=platform%2Fkernel%2Flinux-starfive.git ASoC: soc-ops: fix error handling cppcheck throws the following warning: sound/soc/soc-ops.c:461:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] ret = err; ^ This seems to be a missing change in the return value. Fixes: 7f3d90a351968 ("ASoC: ops: Fix stereo change notifications in snd_soc_put_volsw_sx()") Signed-off-by: Pierre-Louis Bossart Reviewed-by: Bard Liao Reviewed-by: Rander Wang Reviewed-by: Péter Ujfalusi Link: https://lore.kernel.org/r/20220421162328.302017-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-ops.c b/sound/soc/soc-ops.c index a0ca58b..58347ea 100644 --- a/sound/soc/soc-ops.c +++ b/sound/soc/soc-ops.c @@ -461,7 +461,7 @@ int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, ret = err; } } - return err; + return ret; } EXPORT_SYMBOL_GPL(snd_soc_put_volsw_sx);