]> git.baikalelectronics.ru Git - kernel.git/commit
class: use IS_ERR_OR_NULL() helper in class_unregister()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 22 Aug 2022 06:19:22 +0000 (14:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2022 16:15:40 +0000 (18:15 +0200)
commit89377732be3b6441b54e4771e8d3982207809e14
tree9c4a6aa64aa8a5c65f9433787e0926426f2439a9
parent7805b430ac57b9fadf2a3f9c356a64a12fff8c12
class: use IS_ERR_OR_NULL() helper in class_unregister()

Use IS_ERR_OR_NULL() helper in class_unregister() to simplify code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220822061922.3884113-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/class.c