summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-12-12 00:53:13 -0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-24 15:54:27 +0000
commit1edbd35667c5a7f7cf9140b2009027ac9546e8fd (patch)
tree859af06ddae0d6283165565cade26b4d05af7c17 /sound/soc
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff)
downloadblackbird-op-linux-1edbd35667c5a7f7cf9140b2009027ac9546e8fd.tar.gz
blackbird-op-linux-1edbd35667c5a7f7cf9140b2009027ac9546e8fd.zip
ASoC: wm8804: Remove redundant check
The condition "if (!freq_in || !freq_out)" has already been tested previously, so no need to do it again. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8804.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index d321a875b029..1704b1e119cb 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -395,9 +395,6 @@ static int wm8804_set_pll(struct snd_soc_dai *dai, int pll_id,
/* power down the PLL before reprogramming it */
snd_soc_update_bits(codec, WM8804_PWRDN, 0x1, 0x1);
- if (!freq_in || !freq_out)
- return 0;
-
/* set PLLN and PRESCALE */
snd_soc_update_bits(codec, WM8804_PLL4, 0xf | 0x10,
pll_div.n | (pll_div.prescale << 4));
OpenPOWER on IntegriCloud