diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2022-05-20 23:17:18 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-06 13:35:21 +0200 |
commit | 0c57064e3fdba9bb76086b9a6e318eb0cef24b69 (patch) | |
tree | 16cfe36b42b3ec45a5a4a91c60114154b70d1e98 /sound/soc/samsung | |
parent | ASoC: rockchip: simplify error handling (diff) | |
download | linux-0c57064e3fdba9bb76086b9a6e318eb0cef24b69.tar.xz linux-0c57064e3fdba9bb76086b9a6e318eb0cef24b69.zip |
ASoC: samsung: snow: simplify error handling
cppcheck warning:
sound/soc/samsung/snow.c:219:9: warning: Identical condition and
return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
return ret;
^
sound/soc/samsung/snow.c:215:6: note: If condition 'ret' is true, the
function will return/exit
if (ret)
^
sound/soc/samsung/snow.c:219: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-16-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/snow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c index 02372109c251..da342da03880 100644 --- a/sound/soc/samsung/snow.c +++ b/sound/soc/samsung/snow.c @@ -216,7 +216,7 @@ static int snow_probe(struct platform_device *pdev) return dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); - return ret; + return 0; } static int snow_remove(struct platform_device *pdev) |