]> Git Repo - linux.git/commitdiff
clk: samsung: Remove redundant check in samsung_cmu_register_one
authorAditya Pakki <[email protected]>
Tue, 21 Jan 2020 23:33:49 +0000 (17:33 -0600)
committerStephen Boyd <[email protected]>
Wed, 12 Feb 2020 23:38:44 +0000 (15:38 -0800)
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]>
drivers/clk/samsung/clk.c

index dad31308c0711334dde706aab412f4cb890b02f1..1949ae7851b2e57257e28d205b4bc01868584e0b 100644 (file)
@@ -356,10 +356,6 @@ struct samsung_clk_provider * __init samsung_cmu_register_one(
        }
 
        ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids);
-       if (!ctx) {
-               panic("%s: unable to allocate ctx\n", __func__);
-               return ctx;
-       }
 
        if (cmu->pll_clks)
                samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks,
This page took 0.075855 seconds and 4 git commands to generate.