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

clk: intel: remove redundant initialization of variable rate64

The variable rate64 is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lkml.kernel.org/r/20200528221219.535804-1-colin.king@canonical.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent d058fd9e
......@@ -538,7 +538,7 @@ lgm_clk_ddiv_round_rate(struct clk_hw *hw, unsigned long rate,
struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw);
u32 div, ddiv1, ddiv2;
unsigned long flags;
u64 rate64 = rate;
u64 rate64;
div = DIV_ROUND_CLOSEST_ULL((u64)*prate, rate);
......
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