mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
xfs: remove unnecessary check
We checked that "pip" is non-NULL at the start of the if else statement so there is no need to check again here. Delete the check. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
parent
ca57120dfe
commit
fb8b941c75
@ -308,7 +308,7 @@ xfs_inode_init(
|
||||
!vfsgid_in_group_p(i_gid_into_vfsgid(args->idmap, inode)))
|
||||
inode->i_mode &= ~S_ISGID;
|
||||
|
||||
ip->i_projid = pip ? xfs_get_initial_prid(pip) : 0;
|
||||
ip->i_projid = xfs_get_initial_prid(pip);
|
||||
}
|
||||
|
||||
ip->i_disk_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user