From: Aditya Pakki Date: Tue, 21 Jan 2020 23:33:49 +0000 (-0600) Subject: clk: samsung: Remove redundant check in samsung_cmu_register_one X-Git-Tag: v5.10.7~2884^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d7a577d04e8ce24b1b81ee44ec8cd1dda2a9cd9;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lkml.kernel.org/r/20200121233349.28627-1-pakki001@umn.edu Acked-by: Chanwoo Choi Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index dad3130..1949ae7 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -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,