Skip to content

Commit

Permalink
ASoC: dapm: Remove redundant cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rasmus Villemoes authored and Mark Brown committed Oct 21, 2014
1 parent f114040 commit 98ad73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98ad73c

Please sign in to comment.