mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 06:02:38 +00:00
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>
This commit is contained in:
parent
fa55b7dcdc
commit
08d92c7a47
@ -113,7 +113,7 @@ static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk,
|
||||
SWCTRLBTCLKSEL_MASK) >>
|
||||
SWCTRLBTCLKSEL_SHIFT);
|
||||
div += 1;
|
||||
return parent_rate /= div;
|
||||
return parent_rate / div;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user