mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] clk: divider: Remove unused variable in clk_divider_recalc_rate
@ 2019-06-28 15:33 Marcin Niestroj
  2019-06-28 15:33 ` [PATCH 2/3] clk: divider: Fix best div calculation for power-of-two and table dividers Marcin Niestroj
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcin Niestroj @ 2019-06-28 15:33 UTC (permalink / raw)
  To: barebox; +Cc: Marcin Niestroj

commit "clk: add divider_recalc_rate helper" reworked
clk_divider_recalc_rate() function and as part of that left one variable
assignment, which is not used later.

Fixes: e27c0b64db01 ("clk: add divider_recalc_rate helper")
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
 drivers/clk/clk-divider.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c
index d9d3407e7..84a5322cf 100644
--- a/drivers/clk/clk-divider.c
+++ b/drivers/clk/clk-divider.c
@@ -106,13 +106,11 @@ static unsigned long clk_divider_recalc_rate(struct clk *clk,
 		unsigned long parent_rate)
 {
 	struct clk_divider *divider = container_of(clk, struct clk_divider, clk);
-	unsigned int div, val;
+	unsigned int val;
 
 	val = readl(divider->reg) >> divider->shift;
 	val &= div_mask(divider);
 
-	div = _get_div(divider->table, val, divider->flags, divider->width);
-
 	return divider_recalc_rate(clk, parent_rate, val, divider->table,
 				   divider->flags, divider->width);
 }
-- 
2.21.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-07-02  6:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-28 15:33 [PATCH 1/3] clk: divider: Remove unused variable in clk_divider_recalc_rate Marcin Niestroj
2019-06-28 15:33 ` [PATCH 2/3] clk: divider: Fix best div calculation for power-of-two and table dividers Marcin Niestroj
2019-06-28 15:33 ` [PATCH 3/3] clk: divider: Make generic for usage elsewhere Marcin Niestroj
2019-07-02  6:15 ` [PATCH 1/3] clk: divider: Remove unused variable in clk_divider_recalc_rate Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox