ASoC: dapm: Remove unneeded variable ret returning 0
authorRajan Vaja <rajan.vaja@gmail.com>
Thu, 11 Feb 2016 05:53:35 +0000 (11:23 +0530)
committerMark Brown <broonie@kernel.org>
Sat, 5 Mar 2016 05:32:47 +0000 (14:32 +0900)
This patch fixes coccicheck report:
Unneeded variable: "ret". Return "0" on line 2817

Remove unneccesary variable ret created to return zero.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c

index 5a2812fa8946071014d54f9c18ae8311be56fe4e..8dc395f15049216c00773586e341f811695dc628 100644 (file)
@@ -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);