]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-ops: fix error handling
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 21 Apr 2022 16:23:28 +0000 (11:23 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 21 Apr 2022 17:25:12 +0000 (18:25 +0100)
commit03f6f24251c691e8c82edad88d832efc85eef8ed
tree9d016b0ddeae0a4e35cd9aef81a1be06853e6582
parentc7a26b050508aff5c60b3c2c0367f7c22b6f6e38
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: b910b7a34f95b ("ASoC: ops: Fix stereo change notifications in snd_soc_put_volsw_sx()")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220421162328.302017-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c