]> git.ipfire.org Git - thirdparty/linux.git/commit
drivers:iio:Fix the NULL vs IS_ERR() bug for debugfs_create_dir()
authorYang Ruibin <11162571@vivo.com>
Wed, 21 Aug 2024 08:39:08 +0000 (04:39 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 Aug 2024 20:32:52 +0000 (21:32 +0100)
commitc4b43d8336e52dce6d124e428aa3b71703e62647
tree8a11a4b23041248545a16cb62af761c48b7bab7f
parentd35099d3c60c8a60de2cab909040c35e255cf474
drivers:iio:Fix the NULL vs IS_ERR() bug for debugfs_create_dir()

The debugfs_create_dir() function returns error pointers.
It never returns NULL. So use IS_ERR() to check it.

Signed-off-by: Yang Ruibin <11162571@vivo.com>
Link: https://patch.msgid.link/20240821083911.3411-1-11162571@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-backend.c