From: Stephen Boyd Date: Wed, 8 Dec 2021 04:15:34 +0000 (-0800) Subject: clk: __clk_core_init() never takes NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=978fbc7a05993df9a2fd115e8fd78600c72e0dfe;p=linux.git 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 Link: https://lore.kernel.org/r/20211208041534.3928718-2-sboyd@kernel.org --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index add86a4b8e8c7..d9414a7d585b0 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3414,9 +3414,6 @@ static int __clk_core_init(struct clk_core *core) unsigned long rate; int phase; - if (!core) - return -EINVAL; - clk_prepare_lock(); ret = clk_pm_runtime_get(core);