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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Dinh Nguyen <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
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)