Skip to content

Commit 978fbc7

Browse files
committed
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: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20211208041534.3928718-2-sboyd@kernel.org
1 parent 5c1c42c commit 978fbc7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/clk/clk.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,9 +3414,6 @@ static int __clk_core_init(struct clk_core *core)
34143414
unsigned long rate;
34153415
int phase;
34163416

3417-
if (!core)
3418-
return -EINVAL;
3419-
34203417
clk_prepare_lock();
34213418

34223419
ret = clk_pm_runtime_get(core);

0 commit comments

Comments
 (0)