Skip to content

Commit 45edc7e

Browse files
Colin Ian Kingbebarino
authored andcommitted
clk: baikal-t1: remove redundant assignment to variable 'divider'
The variable divider is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Serge Semin <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 8ae91d3 commit 45edc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/baikal-t1/ccu-div.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static int ccu_div_var_set_rate_fast(struct clk_hw *hw, unsigned long rate,
248248
unsigned long parent_rate)
249249
{
250250
struct ccu_div *div = to_ccu_div(hw);
251-
unsigned long flags, divider = 1;
251+
unsigned long flags, divider;
252252
u32 val;
253253

254254
divider = ccu_div_var_calc_divider(rate, parent_rate, div->mask);

0 commit comments

Comments
 (0)