]> www.infradead.org Git - users/dwmw2/linux.git/commit
apparmor: Use IS_ERR_OR_NULL() helper function
authorHongbo Li <lihongbo22@huawei.com>
Wed, 28 Aug 2024 12:26:18 +0000 (20:26 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 27 Nov 2024 03:21:05 +0000 (19:21 -0800)
commitc03093730616a0ce23b1f25f0c5a7f3f613ca94a
tree194872ab46a82423d744c5c5a41f899f41739b43
parent9208c05f9fdfd927ea160b97dfef3c379049fff2
apparmor: 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: John Johansen <john.johansen@canonical.com>
security/apparmor/path.c