All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: iproc: Remove redundant check
@ 2017-04-05 19:53 Ray Jui
  2017-04-05 21:48 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Jui @ 2017-04-05 19:53 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: David Binderman, linux-clk, linux-kernel,
	bcm-kernel-feedback-list, Ray Jui

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

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support")
---
 drivers/clk/bcm/clk-iproc-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/bcm/clk-iproc-pll.c b/drivers/clk/bcm/clk-iproc-pll.c
index e04634c..2d61893 100644
--- a/drivers/clk/bcm/clk-iproc-pll.c
+++ b/drivers/clk/bcm/clk-iproc-pll.c
@@ -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) {
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: iproc: Remove redundant check
  2017-04-05 19:53 [PATCH] clk: iproc: Remove redundant check Ray Jui
@ 2017-04-05 21:48 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2017-04-05 21:48 UTC (permalink / raw)
  To: Ray Jui
  Cc: Michael Turquette, David Binderman, linux-clk, linux-kernel,
	bcm-kernel-feedback-list

On 04/05, Ray Jui wrote:
> Remove the redundant check of 'rate' in the if statement of the
> 'pll_set_rate' function
> 
> Reported-by: David Binderman <dcb314@hotmail.com>
> Signed-off-by: Ray Jui <ray.jui@broadcom.com>
> Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support")
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-05 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05 19:53 [PATCH] clk: iproc: Remove redundant check Ray Jui
2017-04-05 21:48 ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.