Skip to contentSkip to conversation

ASoC: Remove unused rate variable in magician_playback_hw_params

PATCH Applied Axel Lin 2 participants 4 messages Oct 2, 2011

Subsystems (4)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 ASoC: Remove unused rate variable in magician_playback_hw_params

---
 sound/soc/pxa/magician.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/soc/pxa/magician.c +1 -2
index 67dcc36..098e5f4 100644
@@ -92,11 +92,10 @@ static int magician_playback_hw_params(struct snd_pcm_substream *substream,
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 	struct snd_soc_dai *codec_dai = rtd->codec_dai;
 	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
-	unsigned int acps, acds, width, rate;
+	unsigned int acps, acds, width;
 	unsigned int div4 = PXA_SSP_CLK_SCDB_4;
 	int ret = 0;
 
-	rate = params_rate(params);
 	width = snd_pcm_format_physical_width(params_format(params));
 
 	/*
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 2/2 ASoC: Remove unused srate variable in tegra_spdif_hw_params

---
 sound/soc/tegra/tegra_spdif.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra_spdif.c +1 -2
index 1bd07d1..dd11d0c 100644
@@ -127,7 +127,7 @@ static int tegra_spdif_hw_params(struct snd_pcm_substream *substream,
 {
 	struct device *dev = substream->pcm->card->dev;
 	struct tegra_spdif *spdif = snd_soc_dai_get_drvdata(dai);
-	int ret, srate, spdifclock;
+	int ret, spdifclock;
 
 	spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_PACK;
 	spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_BIT_MODE_MASK;
@@ -140,7 +140,6 @@ static int tegra_spdif_hw_params(struct snd_pcm_substream *substream,
 		return -EINVAL;
 	}
 
-	srate = params_rate(params);
 	switch (params_rate(params)) {
 	case 32000:
 		spdifclock = 4096000;
Signature · 1 line
1.7.4.1