diff options
author | Rajan Vaja <rajan.vaja@gmail.com> | 2016-02-11 00:53:35 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-05 00:32:47 -0500 |
commit | e066ea2214f77e13e24344313243f9b3a182d3c4 (patch) | |
tree | 15baf938468f7b46224e4e87617c2404aff62a47 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
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: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/soc-dapm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 5a2812fa8946..8dc395f15049 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -2805,7 +2805,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_add_routes); | |||
2805 | int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, | 2805 | int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, |
2806 | const struct snd_soc_dapm_route *route, int num) | 2806 | const struct snd_soc_dapm_route *route, int num) |
2807 | { | 2807 | { |
2808 | int i, ret = 0; | 2808 | int i; |
2809 | 2809 | ||
2810 | mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); | 2810 | mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); |
2811 | for (i = 0; i < num; i++) { | 2811 | for (i = 0; i < num; i++) { |
@@ -2814,7 +2814,7 @@ int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, | |||
2814 | } | 2814 | } |
2815 | mutex_unlock(&dapm->card->dapm_mutex); | 2815 | mutex_unlock(&dapm->card->dapm_mutex); |
2816 | 2816 | ||
2817 | return ret; | 2817 | return 0; |
2818 | } | 2818 | } |
2819 | EXPORT_SYMBOL_GPL(snd_soc_dapm_del_routes); | 2819 | EXPORT_SYMBOL_GPL(snd_soc_dapm_del_routes); |
2820 | 2820 | ||