diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-25 17:02:04 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-25 21:05:56 -0500 |
commit | aa3e838869d494c437c693b54d12fe02b96a0aa1 (patch) | |
tree | fdbcf747035b89cd6dc27418b990d966ca422039 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
ASoC: pxa: remove unused variable
As pointed out by Zhangfei Gao, the sspa_div variable in
brownstone_wm8994_hw_params() is completely unused, so as a cleanup
following a prior patch, this removes both the variable and the division.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/pxa/brownstone.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/pxa/brownstone.c b/sound/soc/pxa/brownstone.c index 416ea646c3b1..ec522e94b0e2 100644 --- a/sound/soc/pxa/brownstone.c +++ b/sound/soc/pxa/brownstone.c | |||
@@ -52,7 +52,6 @@ static int brownstone_wm8994_hw_params(struct snd_pcm_substream *substream, | |||
52 | struct snd_soc_dai *codec_dai = rtd->codec_dai; | 52 | struct snd_soc_dai *codec_dai = rtd->codec_dai; |
53 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | 53 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
54 | int freq_out, sspa_mclk, sysclk; | 54 | int freq_out, sspa_mclk, sysclk; |
55 | int sspa_div; | ||
56 | 55 | ||
57 | if (params_rate(params) > 11025) { | 56 | if (params_rate(params) > 11025) { |
58 | freq_out = params_rate(params) * 512; | 57 | freq_out = params_rate(params) * 512; |
@@ -63,7 +62,6 @@ static int brownstone_wm8994_hw_params(struct snd_pcm_substream *substream, | |||
63 | sysclk = params_rate(params) * 512; | 62 | sysclk = params_rate(params) * 512; |
64 | sspa_mclk = params_rate(params) * 64; | 63 | sspa_mclk = params_rate(params) * 64; |
65 | } | 64 | } |
66 | sspa_div = freq_out / sspa_mclk; | ||
67 | 65 | ||
68 | snd_soc_dai_set_sysclk(cpu_dai, MMP_SSPA_CLK_AUDIO, freq_out, 0); | 66 | snd_soc_dai_set_sysclk(cpu_dai, MMP_SSPA_CLK_AUDIO, freq_out, 0); |
69 | snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); | 67 | snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); |