ASoC: sh: rcar: simplify return

cppcheck warning:

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

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210219231635.5749-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Pierre-Louis Bossart 2021-02-19 17:16:30 -06:00 committed by Mark Brown
parent d29a60604f
commit 652fc90f9d
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -216,7 +216,7 @@ int rsnd_mod_init(struct rsnd_priv *priv,
mod->clk = clk; mod->clk = clk;
mod->priv = priv; mod->priv = priv;
return ret; return 0;
} }
void rsnd_mod_quit(struct rsnd_mod *mod) void rsnd_mod_quit(struct rsnd_mod *mod)