All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: compress: Remove duplicated code
@ 2017-08-07 12:56 Peng Donglin
  0 siblings, 0 replies; 8+ messages in thread
From: Peng Donglin @ 2017-08-07 12:56 UTC (permalink / raw)
  To: broonie; +Cc: alsa-devel, Peng Donglin

The value of the variable new_name is assigned repeatedly.

Signed-off-by: Peng Donglin <pengdonglin137@163.com>
---
 sound/soc/soc-compress.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index 206f36b..2c16f42 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -737,9 +737,6 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
 	}
 
 	/* check client and interface hw capabilities */
-	snprintf(new_name, sizeof(new_name), "%s %s-%d",
-			rtd->dai_link->stream_name, codec_dai->name, num);
-
 	if (codec_dai->driver->playback.channels_min)
 		playback = 1;
 	if (codec_dai->driver->capture.channels_min)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-07 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1502111504-7996-1-git-send-email-pengdonglin137@163.com>
2017-08-07 13:18 ` [PATCH] ASoC: compress: Remove duplicated code Donglin Peng
2017-08-07 15:07   ` Mark Brown
2017-08-07 15:07     ` Mark Brown
2017-08-07 15:28     ` Pierre-Louis Bossart
2017-08-07 15:42       ` Mark Brown
2017-08-07 15:59         ` Liam Girdwood
2017-08-07 16:33           ` Donglin Peng
2017-08-07 12:56 Peng Donglin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.