Skip to content

Commit

Permalink
ubifs: Use NULL instead of using plain integer as pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lotte-Bai authored and richardweinberger committed May 27, 2022
1 parent 5bff56e commit 532aef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 532aef5

Please sign in to comment.