[PATCH v1] thermal/drivers/mediatek/lvts_thermal: fix error check in lvts_debugfs_init()
Chen-Yu Tsai
wenst at chromium.org
Mon Sep 25 21:00:40 PDT 2023
On Thu, Sep 21, 2023 at 5:11 PM Minjie Du <duminjie at vivo.com> wrote:
>
> debugfs_create_dir() function returns an error value embedded in
> the pointer (PTR_ERR). Evaluate the return value using IS_ERR
> rather than checking for NULL.
>
> Signed-off-by: Minjie Du <duminjie at vivo.com>
Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>
More information about the Linux-mediatek
mailing list