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 <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5c1c42c commit 978fbc7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)