ext4: Fix sparse warning: Using plain integer as NULL pointer
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:

committed by
Theodore Ts'o

parent
da488945f4
commit
7dc576158d
@@ -649,7 +649,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent,
|
||||
*group = parent_group + flex_size;
|
||||
if (*group > ngroups)
|
||||
*group = 0;
|
||||
return find_group_orlov(sb, parent, group, mode, 0);
|
||||
return find_group_orlov(sb, parent, group, mode, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user