1
0
Fork 0

clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk()

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>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
hifive-unleashed-5.1
YueHaibing 2018-11-15 11:36:28 +00:00 committed by Stephen Boyd
parent 651022382c
commit 25bf466bd2
1 changed files with 1 additions and 1 deletions

View File

@ -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;