Skip to contentSkip to conversation

clk: iproc: Remove redundant check

PATCH Applied Ray Jui 2 participants 2 messages Apr 5, 2017

Subsystems (2)
lore
Share & tools
lore

Ray Jui

author
#0 lore raw

PATCH 1/1 clk: iproc: Remove redundant check

Remove the redundant check of 'rate' in the if statement of the 'pll_set_rate' function

Fixes 5fe225c105fd ("clk: iproc: add initial common clock support")
---
 drivers/clk/bcm/clk-iproc-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/bcm/clk-iproc-pll.c +1 -1
index e04634c..2d61893 100644
@@ -277,7 +277,7 @@ static int pll_set_rate(struct iproc_clk *clk, unsigned int rate_index,
 	if (rate >= VCO_LOW && rate < VCO_HIGH) {
 		ki = 4;
 		kp_index = KP_BAND_MID;
-	} else if (rate >= VCO_HIGH && rate && rate < VCO_HIGH_HIGH) {
+	} else if (rate >= VCO_HIGH && rate < VCO_HIGH_HIGH) {
 		ki = 3;
 		kp_index = KP_BAND_HIGH;
 	} else if (rate >= VCO_HIGH_HIGH && rate < VCO_MAX) {
Signature · 1 line
2.1.4
Applied
#1 lore raw
Quoted 7 lines · Ray Jui

Remove the redundant check of 'rate' in the if statement of the 'pll_set_rate' function

Fixes 5fe225c105fd ("clk: iproc: add initial common clock support")

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project