Commit d5a0945f authored by Ray Jui's avatar Ray Jui Committed by Michael Turquette

clk: iproc: Remove redundant check

Remove the redundant check of 'rate' in the if statement of the
'pll_set_rate' function
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarRay Jui <ray.jui@broadcom.com>
Fixes: 5fe225c1 ("clk: iproc: add initial common clock support")
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMichael Turquette <mturquette@baylibre.com>
parent 55798360
...@@ -277,7 +277,7 @@ static int pll_set_rate(struct iproc_clk *clk, unsigned int rate_index, ...@@ -277,7 +277,7 @@ static int pll_set_rate(struct iproc_clk *clk, unsigned int rate_index,
if (rate >= VCO_LOW && rate < VCO_HIGH) { if (rate >= VCO_LOW && rate < VCO_HIGH) {
ki = 4; ki = 4;
kp_index = KP_BAND_MID; 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; ki = 3;
kp_index = KP_BAND_HIGH; kp_index = KP_BAND_HIGH;
} else if (rate >= VCO_HIGH_HIGH && rate < VCO_MAX) { } else if (rate >= VCO_HIGH_HIGH && rate < VCO_MAX) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment