Skip to content
Commit 19ad9f29 authored by Minjie Du's avatar Minjie Du Committed by Daniel Lezcano
Browse files

thermal/drivers/mediatek/lvts: Fix parameter check in lvts_debugfs_init()



The documentation says "If an error occurs, ERR_PTR(-ERROR) will be
returned" but the current code checks against a NULL pointer returned.

Fix this by checking if IS_ERR().

Signed-off-by: default avatarMinjie Du <duminjie@vivo.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230713042413.2519-1-duminjie@vivo.com
parent 2bba1acf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment