]> Git Repo - linux.git/commit
thermal/debugfs: Fix the NULL vs IS_ERR() confusion in debugfs_create_dir()
authorYang Ruibin <[email protected]>
Wed, 21 Aug 2024 07:59:33 +0000 (03:59 -0400)
committerRafael J. Wysocki <[email protected]>
Wed, 21 Aug 2024 18:38:44 +0000 (20:38 +0200)
commit57df60e1f981fa8c288a49012a4bbb02ae0ecdbc
treea8f61f534807ccfc7644989c37546ff9b692c641
parent47ac09b91befbb6a235ab620c32af719f8208399
thermal/debugfs: Fix the NULL vs IS_ERR() confusion in debugfs_create_dir()

The debugfs_create_dir() return value is never NULL, it is either a
valid pointer or an error one.

Use IS_ERR() to check it.

Fixes: 7ef01f228c9f ("thermal/debugfs: Add thermal debugfs information for mitigation episodes")
Fixes: 755113d76786 ("thermal/debugfs: Add thermal cooling device debugfs information")
Signed-off-by: Yang Ruibin <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/thermal/thermal_debugfs.c
This page took 0.060884 seconds and 4 git commands to generate.