Skip to content

Commit 08d92c7

Browse files
ColinIanKingbebarino
authored andcommitted
clk: socfpga: remove redundant assignment on division
The variable parent_rate is being divided by div and the result is re-assigned to parent_rate before being returned. The assignment is redundant, replace /= operator with just / operator. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20211221003750.212780-1-colin.i.king@gmail.com Acked-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent fa55b7d commit 08d92c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/socfpga/clk-pll-s10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk,
113113
SWCTRLBTCLKSEL_MASK) >>
114114
SWCTRLBTCLKSEL_SHIFT);
115115
div += 1;
116-
return parent_rate /= div;
116+
return parent_rate / div;
117117
}
118118

119119

0 commit comments

Comments
 (0)