diff mbox

ASoC: dapm: Remove redundant cast

Message ID 1413903675-3363-1-git-send-email-linux@rasmusvillemoes.dk (mailing list archive)
State Accepted
Commit 98ad73c995ed4886c36a1fcfcda53fbff484f666
Headers show

Commit Message

Rasmus Villemoes Oct. 21, 2014, 3:01 p.m. UTC
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>
---
 sound/soc/soc-dapm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown Oct. 21, 2014, 9:24 p.m. UTC | #1
On Tue, Oct 21, 2014 at 05:01:15PM +0200, Rasmus Villemoes wrote:
> Both path->name and e->texts[i] have type const char*, so the cast is
> slightly confusing and certainly unnecessary.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index c61cb9c..39f992b 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,
 			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