]> git.baikalelectronics.ru Git - kernel.git/commit
clk: __clk_core_init() never takes NULL
authorStephen Boyd <sboyd@kernel.org>
Wed, 8 Dec 2021 04:15:34 +0000 (20:15 -0800)
committerStephen Boyd <sboyd@kernel.org>
Fri, 10 Dec 2021 01:15:47 +0000 (17:15 -0800)
commit525945d793913d26b9c23eaa42884ed986e9f2a2
tree41d51506bbbdebbbcc1e56ba4d9a476ce671807e
parent0098141b14f964b1e187a79bf403a44e988d1773
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 <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20211208041534.3928718-2-sboyd@kernel.org
drivers/clk/clk.c