[PATCH v1] thermal/drivers/mediatek/lvts_thermal: fix error check in lvts_debugfs_init()

Alexandre Mergnat amergnat at baylibre.com
Mon Sep 25 06:45:09 PDT 2023


Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

On 21/09/2023 11:10, Minjie Du 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.

-- 
Regards,
Alexandre



More information about the Linux-mediatek mailing list