aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorColin Ian King2020-05-28 23:12:19 +0100
committerStephen Boyd2020-05-28 16:00:33 -0700
commitd036466330d13039a09e407b23a0dabec1a9533a (patch)
treeff46105de27bc94dddf222c1feae6912a54bd900 /drivers/clk
parentd058fd9e8984cd9f18564f7fec38e07ce671c8b8 (diff)
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: Colin Ian King <colin.king@canonical.com> Link: https://lkml.kernel.org/r/20200528221219.535804-1-colin.king@canonical.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/x86/clk-cgu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/x86/clk-cgu.c b/drivers/clk/x86/clk-cgu.c
index 802a7fa88535..56af0e04ec1e 100644
--- a/drivers/clk/x86/clk-cgu.c
+++ b/drivers/clk/x86/clk-cgu.c
@@ -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);