public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk:sophgo:clk-cv18xx-pll: fix unitialized u32 variable
@ 2024-11-13  2:02 Ragavendra
  2024-11-13 23:36 ` Chen Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Ragavendra @ 2024-11-13  2:02 UTC (permalink / raw)
  To: mturquette, sboyd, unicorn_wang, inochiama
  Cc: linux-clk, linux-kernel, Ragavendra

Initializing the val variable of type u32 as it was not initialized.

Fixes: 80fd61ec4612 ("clk: sophgo: Add clock support for CV1800 SoC")
Signed-off-by: Ragavendra Nagraj <ragavendra.bn@gmail.com>
---
 drivers/clk/sophgo/clk-cv18xx-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/sophgo/clk-cv18xx-pll.c b/drivers/clk/sophgo/clk-cv18xx-pll.c
index 29e24098bf5f..04a0419cab4e 100644
--- a/drivers/clk/sophgo/clk-cv18xx-pll.c
+++ b/drivers/clk/sophgo/clk-cv18xx-pll.c
@@ -87,7 +87,7 @@ static int ipll_find_rate(const struct cv1800_clk_pll_limit *limit,
 
 static int ipll_determine_rate(struct clk_hw *hw, struct clk_rate_request *req)
 {
-	u32 val;
+	u32 val = 0;
 	struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw);
 
 	return ipll_find_rate(pll->pll_limit, req->best_parent_rate,
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-14 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13  2:02 [PATCH] clk:sophgo:clk-cv18xx-pll: fix unitialized u32 variable Ragavendra
2024-11-13 23:36 ` Chen Wang
2024-11-14 20:04   ` Ragavendra B.N.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox