Commit 08d92c7a authored by Colin Ian King's avatar Colin Ian King Committed by Stephen Boyd

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211221003750.212780-1-colin.i.king@gmail.comAcked-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent fa55b7dc
...@@ -113,7 +113,7 @@ static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk, ...@@ -113,7 +113,7 @@ static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk,
SWCTRLBTCLKSEL_MASK) >> SWCTRLBTCLKSEL_MASK) >>
SWCTRLBTCLKSEL_SHIFT); SWCTRLBTCLKSEL_SHIFT);
div += 1; div += 1;
return parent_rate /= div; return parent_rate / div;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment