ASoC: wm8804: Remove redundant check
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 12 Dec 2012 02:53:13 +0000 (00:53 -0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 15:54:27 +0000 (15:54 +0000)
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>
sound/soc/codecs/wm8804.c

index d321a875b029dc693fb2b7483dd73ceea1ce4ee8..1704b1e119cb021db8fced2be8482c5da40810d9 100644 (file)
@@ -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));