diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-03-22 13:13:04 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2022-05-27 17:24:12 +0300 |
commit | 532aef5912c2c2add9ae725bcb1d0924e609dd87 (patch) | |
tree | ff605dfd4f4fcf0d19fc4004bf304bf2053a38af /fs | |
parent | 5bff56edab7f11bda31cfc708634a025bb265836 (diff) | |
download | linux-532aef5912c2c2add9ae725bcb1d0924e609dd87.tar.xz |
ubifs: Use NULL instead of using plain integer as pointer
This fixes the following sparse warnings:
fs/ubifs/xattr.c:680:58: warning: Using plain integer as NULL pointer
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c index e4f193eae4b2..e4c4761aff7f 100644 --- a/fs/ubifs/xattr.c +++ b/fs/ubifs/xattr.c @@ -677,7 +677,7 @@ int ubifs_init_security(struct inode *dentry, struct inode *inode, int err; err = security_inode_init_security(inode, dentry, qstr, - &init_xattrs, 0); + &init_xattrs, NULL); if (err) { struct ubifs_info *c = dentry->i_sb->s_fs_info; ubifs_err(c, "cannot initialize security for inode %lu, error %d", |