[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180313133626.31286-1-colin.king@canonical.com>
Date: Tue, 13 Mar 2018 13:36:26 +0000
From: Colin King <colin.king@...onical.com>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Sangbeom Kim <sbkim73@...sung.com>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][next] ASoC: samsung: remove redundant pointer cpu_dai
From: Colin Ian King <colin.king@...onical.com>
The pointer cpu_dai is assigned a value but the pointer is never
read, hence it is redundant and can be removed.
Cleans up clang warning:
sound/soc/samsung/snow.c:45:2: warning: Value stored to 'cpu_dai' is never read
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
sound/soc/samsung/snow.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c
index fc62110f500f..47b904e2b8c3 100644
--- a/sound/soc/samsung/snow.c
+++ b/sound/soc/samsung/snow.c
@@ -37,12 +37,10 @@ static int snow_late_probe(struct snd_soc_card *card)
{
struct snd_soc_pcm_runtime *rtd;
struct snd_soc_dai *codec_dai;
- struct snd_soc_dai *cpu_dai;
int ret;
rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name);
codec_dai = rtd->codec_dai;
- cpu_dai = rtd->cpu_dai;
/* Set the MCLK rate for the codec */
ret = snd_soc_dai_set_sysclk(codec_dai, 0,
--
2.15.1
Powered by blists - more mailing lists