Skip to content
Commit eff06bd5 authored by vulab's avatar vulab Committed by Stephen Boyd
Browse files

clk: clk-prima2: fix return value check in prima2_clk_init()



In case of error, the function clk_register() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20200921034522.9077-1-vulab@iscas.ac.cn


Acked-by: default avatarBarry Song <baohua@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 9123e3a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment