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)
commite9628e015fe205f10766f031f17e217f85650570
tree9c4a6aa64aa8a5c65f9433787e0926426f2439a9
parent07b7b883be5ba0b4bd9ebf8d72c236ef36ae2676
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