Commit fb8b941c authored by Dan Carpenter's avatar Dan Carpenter Committed by Chandan Babu R
Browse files

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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarChandan Babu R <chandanbabu@kernel.org>
parent ca57120d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;