[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200528221219.535804-1-colin.king@canonical.com>
Date: Thu, 28 May 2020 23:12:19 +0100
From: Colin King <colin.king@...onical.com>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Rahul Tanwar <rahul.tanwar@...ux.intel.com>,
linux-clk@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][next] clk: intel: remove redundant initialization of variable rate64
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
drivers/clk/x86/clk-cgu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.25.1
Powered by blists - more mailing lists