Commit 8d7a577d authored by Aditya Pakki's avatar Aditya Pakki Committed by Stephen Boyd

clk: samsung: Remove redundant check in samsung_cmu_register_one

Consistent with other instances of samsung_clk_init, the check
if ctx is NULL is redundant. The function currently does not
return NULL.
Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Link: https://lkml.kernel.org/r/20200121233349.28627-1-pakki001@umn.eduAcked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent bb6d3fb3
...@@ -356,10 +356,6 @@ struct samsung_clk_provider * __init samsung_cmu_register_one( ...@@ -356,10 +356,6 @@ struct samsung_clk_provider * __init samsung_cmu_register_one(
} }
ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids); ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids);
if (!ctx) {
panic("%s: unable to allocate ctx\n", __func__);
return ctx;
}
if (cmu->pll_clks) if (cmu->pll_clks)
samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks, samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment