提交 e066ea22 编写于 作者: R Rajan Vaja 提交者: Mark Brown

ASoC: dapm: Remove unneeded variable ret returning 0

This patch fixes coccicheck report:
	Unneeded variable: "ret". Return "0" on line 2817

Remove unneccesary variable ret created to return zero.
Signed-off-by: NRajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 92e963f5
......@@ -2805,7 +2805,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_add_routes);
int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
const struct snd_soc_dapm_route *route, int num)
{
int i, ret = 0;
int i;
mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT);
for (i = 0; i < num; i++) {
......@@ -2814,7 +2814,7 @@ int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
}
mutex_unlock(&dapm->card->dapm_mutex);
return ret;
return 0;
}
EXPORT_SYMBOL_GPL(snd_soc_dapm_del_routes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册