Skip to contentSkip to conversation

ASoC: wm8804: Remove redundant check

PATCH Applied Fabio Estevam 2 participants 2 messages Dec 12, 2012 – Dec 24, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm8804: Remove redundant check

From: Fabio Estevam <[email protected]>

The condition "if (!freq_in || !freq_out)" has already been tested previously, so no need to do it again.

---
 sound/soc/codecs/wm8804.c |    3 ---
 1 file changed, 3 deletions(-)
sound/soc/codecs/wm8804.c +0 -3
index d321a87..1704b1e 100644
@@ -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));
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 4 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The condition "if (!freq_in || !freq_out)" has already been tested previously, so no need to do it again.

Applied, thanks.