Skip to content

Commit 8d7a577

Browse files
Aditya Pakkibebarino
authored andcommitted
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: Aditya Pakki <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Acked-by: Chanwoo Choi <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent bb6d3fb commit 8d7a577

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/clk/samsung/clk.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,6 @@ struct samsung_clk_provider * __init samsung_cmu_register_one(
356356
}
357357

358358
ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids);
359-
if (!ctx) {
360-
panic("%s: unable to allocate ctx\n", __func__);
361-
return ctx;
362-
}
363359

364360
if (cmu->pll_clks)
365361
samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks,

0 commit comments

Comments
 (0)