[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210313034112.eqa7zxtes2ruklqj@pallavi>
Date: Sat, 13 Mar 2021 09:11:12 +0530
From: Pallavi Prabhu <rpallaviprabhu@...il.com>
To: mturquette@...libre.com, sboyd@...nel.org,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] clk: clk.c: Fixed statics initialized to 0
Uninitialized static variable from 0, as statics get auto-initialized to 0 during execution.
Signed-off-by: Pallavi Prabhu <rpallaviprabhu@...il.com>
---
drivers/clk/clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 5052541a0986..763ad2c960bd 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2931,7 +2931,7 @@ EXPORT_SYMBOL_GPL(clk_is_match);
#include <linux/debugfs.h>
static struct dentry *rootdir;
-static int inited = 0;
+static int inited;
static DEFINE_MUTEX(clk_debug_lock);
static HLIST_HEAD(clk_debug_list);
--
2.25.1
Powered by blists - more mailing lists