imx_clk_composite: Mark two variables only used in debug traces as unused.
While here, make best_post_div track the best value of post_div rather than pre_div so that the debug trace doesn't just print the same value twice.
This commit is contained in:
parent
34df2dfa51
commit
888a602959
@ -212,7 +212,8 @@ imx_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout
|
||||
const char **p_names;
|
||||
int p_idx, best_parent;
|
||||
int64_t best_diff, diff;
|
||||
int32_t best_pre_div, best_post_div, pre_div, post_div;
|
||||
int32_t best_pre_div __unused, best_post_div __unused;
|
||||
int32_t pre_div, post_div;
|
||||
uint64_t cur, best;
|
||||
uint32_t val;
|
||||
|
||||
@ -236,7 +237,7 @@ imx_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout
|
||||
best = cur;
|
||||
best_diff = diff;
|
||||
best_pre_div = pre_div;
|
||||
best_post_div = pre_div;
|
||||
best_post_div = post_div;
|
||||
best_parent = p_idx;
|
||||
dprintf("Best parent so far %s (%d) with best freq at "
|
||||
"%ju\n", clknode_get_name(p_clk), p_idx, best);
|
||||
|
Loading…
Reference in New Issue
Block a user