ASoC: dapm: Remove redundant cast
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 21 Oct 2014 15:01:15 +0000 (17:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 21 Oct 2014 21:24:31 +0000 (22:24 +0100)
Both path->name and e->texts[i] have type const char*, so the cast is
slightly confusing and certainly unnecessary.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c

index c61cb9c..39f992b 100644 (file)
@@ -496,7 +496,7 @@ static int dapm_connect_mux(struct snd_soc_dapm_context *dapm,
                        list_add(&path->list, &dapm->card->paths);
                        list_add(&path->list_sink, &dest->sources);
                        list_add(&path->list_source, &src->sinks);
-                       path->name = (char*)e->texts[i];
+                       path->name = e->texts[i];
                        if (i == item)
                                path->connect = 1;
                        else