diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-10-21 11:01:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-21 17:24:31 -0400 |
commit | 98ad73c995ed4886c36a1fcfcda53fbff484f666 (patch) | |
tree | ecea6dbc9ceb4e1ca9bc512be0afa5efd6292039 | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
ASoC: dapm: Remove redundant cast
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>
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index c61cb9cedbcd..39f992bc2b6a 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -496,7 +496,7 @@ static int dapm_connect_mux(struct snd_soc_dapm_context *dapm, | |||
496 | list_add(&path->list, &dapm->card->paths); | 496 | list_add(&path->list, &dapm->card->paths); |
497 | list_add(&path->list_sink, &dest->sources); | 497 | list_add(&path->list_sink, &dest->sources); |
498 | list_add(&path->list_source, &src->sinks); | 498 | list_add(&path->list_source, &src->sinks); |
499 | path->name = (char*)e->texts[i]; | 499 | path->name = e->texts[i]; |
500 | if (i == item) | 500 | if (i == item) |
501 | path->connect = 1; | 501 | path->connect = 1; |
502 | else | 502 | else |