diff options
author | Minjie Du <[email protected]> | 2023-09-21 17:10:50 +0800 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-10-15 23:40:10 +0200 |
commit | 2ffa39c83b39f555d9a61daec3ed1cc79c4ba7ef (patch) | |
tree | 6e321b0e8f9825ced81a3269674341b73ee2d969 /scripts/generate_rust_analyzer.py | |
parent | de84da588f35423c5c2e6a46f2bc8a07f8eaf793 (diff) |
thermal/drivers/mediatek/lvts_thermal: Fix error check in lvts_debugfs_init()
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 <[email protected]>
Reviewed-by: Alexandre Mergnat <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions