diff mbox series

[-next] clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk()

Message ID 1542281788-129746-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State Accepted, archived
Headers show
Series [-next] clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk() | expand

Commit Message

Yue Haibing Nov. 15, 2018, 11:36 a.m. UTC
There is no need to have the 'struct clk_hw **hws' variable static
since new value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/clk/clk-stm32mp1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd Nov. 30, 2018, 7:13 a.m. UTC | #1
Quoting YueHaibing (2018-11-15 03:36:28)
> There is no need to have the 'struct clk_hw **hws' variable static
> since new value always be assigned before use it.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---

Applied to clk-next
diff mbox series

Patch

diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c
index 4f48342..6a31f7f 100644
--- a/drivers/clk/clk-stm32mp1.c
+++ b/drivers/clk/clk-stm32mp1.c
@@ -2015,7 +2015,7 @@  static int stm32_register_hw_clk(struct device *dev,
 				 void __iomem *base, spinlock_t *lock,
 				 const struct clock_config *cfg)
 {
-	static struct clk_hw **hws;
+	struct clk_hw **hws;
 	struct clk_hw *hw = ERR_PTR(-ENOENT);
 
 	hws = clk_data->hws;