Skip to content

Commit fb8b941

Browse files
Dan CarpenterChandan Babu R
authored andcommitted
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>
1 parent ca57120 commit fb8b941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_inode_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ xfs_inode_init(
308308
!vfsgid_in_group_p(i_gid_into_vfsgid(args->idmap, inode)))
309309
inode->i_mode &= ~S_ISGID;
310310

311-
ip->i_projid = pip ? xfs_get_initial_prid(pip) : 0;
311+
ip->i_projid = xfs_get_initial_prid(pip);
312312
}
313313

314314
ip->i_disk_size = 0;

0 commit comments

Comments
 (0)