Skip to content

Commit

Permalink
clk: __clk_core_init() never takes NULL
Browse files Browse the repository at this point in the history
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: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20211208041534.3928718-2-sboyd@kernel.org
  • Loading branch information
Stephen Boyd committed Dec 10, 2021
1 parent 5c1c42c commit 978fbc7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3414,9 +3414,6 @@ static int __clk_core_init(struct clk_core *core)
unsigned long rate;
int phase;

if (!core)
return -EINVAL;

clk_prepare_lock();

ret = clk_pm_runtime_get(core);
Expand Down

0 comments on commit 978fbc7

Please sign in to comment.