]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lsm: Use IS_ERR_OR_NULL() helper function
authorHongbo Li <lihongbo22@huawei.com>
Wed, 28 Aug 2024 12:24:50 +0000 (20:24 +0800)
committerPaul Moore <paul@paul-moore.com>
Thu, 29 Aug 2024 15:12:13 +0000 (11:12 -0400)
commitce4a60592ee03e8f6900bf9bf2a6108cd1a9903c
tree6a39883f7b8da1ea8385d0c1f122f484fe9f5579
parentd6bd12e80bf94b055def6ff708e76f836b4b17ad
lsm: Use IS_ERR_OR_NULL() helper function

Use the IS_ERR_OR_NULL() helper instead of open-coding a
NULL and an error pointer checks to simplify the code and
improve readability.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/inode.c