clk: socfpga: remove redundant assignment on division
authorColin Ian King <colin.i.king@gmail.com>
Tue, 21 Dec 2021 00:37:50 +0000 (00:37 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 6 Jan 2022 00:32:43 +0000 (16:32 -0800)
commit08d92c7a47375ac98aa5b9cdeb3a8736b37cf6d4
tree649c586f9a7f8738dc626b19231b798be143a2bd
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
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>
drivers/clk/socfpga/clk-pll-s10.c