Commit 978fbc7a authored by Stephen Boyd's avatar Stephen Boyd

clk: __clk_core_init() never takes NULL

The only caller of __clk_core_init() allocates the pointer and checks
the allocation for NULL so this check is impossible. Remove it.
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20211208041534.3928718-2-sboyd@kernel.org
parent 5c1c42c4
...@@ -3414,9 +3414,6 @@ static int __clk_core_init(struct clk_core *core) ...@@ -3414,9 +3414,6 @@ static int __clk_core_init(struct clk_core *core)
unsigned long rate; unsigned long rate;
int phase; int phase;
if (!core)
return -EINVAL;
clk_prepare_lock(); clk_prepare_lock();
ret = clk_pm_runtime_get(core); ret = clk_pm_runtime_get(core);
......
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