Skip to content
Commit 2a65f7e2 authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Lezcano
Browse files

clocksource/drivers/ingenic_ost: Fix return value check in ingenic_ost_probe()



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

Fixes: ca7b72b5 ("clocksource: Add driver for the Ingenic JZ47xx OST")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210308123031.2285083-1-weiyongjun1@huawei.com
parent ac4daf73
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