[PATCH] lsm: Use IS_ERR_OR_NULL() helper function

Paul Moore paul at paul-moore.com
Thu Aug 29 15:12:12 UTC 2024


On Aug 28, 2024 Hongbo Li <lihongbo22 at huawei.com> wrote:
> 
> 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 at huawei.com>
> ---
>  security/inode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged into lsm/dev, thanks.

--
paul-moore.com



More information about the Linux-security-module-archive mailing list