ASoC: rockchip: simplify error handling
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 20 May 2022 21:17:17 +0000 (16:17 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:35:20 +0000 (12:35 +0100)
commit59a6cc5c5d64ca20461fec46e450e0639b1e6410
tree480e60c9a289b242f5cee8740c3bff376f4b48c8
parent7518be0cc120d7617a8985787196cd5776b93688
ASoC: rockchip: simplify error handling

cppcheck warning:

sound/soc/rockchip/rk3288_hdmi_analog.c:256:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/rockchip/rk3288_hdmi_analog.c:252:6: note: If condition
'ret' is true, the function will return/exit
 if (ret)
     ^
sound/soc/rockchip/rk3288_hdmi_analog.c:256:9: note: Returning
identical expression 'ret'
 return ret;
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220520211719.607543-15-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3288_hdmi_analog.c