projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114040
)
ASoC: dapm: Remove redundant cast
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Tue, 21 Oct 2014 15:01:15 +0000
(17:01 +0200)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index c61cb9cedbcd283c22625cac53367606fb0fc18a..39f992bc2b6adf1d36dd9647b860c839edf4087b 100644
(file)
--- 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,
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