diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-07-12 17:07:36 +0300 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-09-03 07:37:40 +0300 |
commit | fb8b941c75bd70ddfb0a8a3bb9bb770ed1d648f8 (patch) | |
tree | 5f0ba909e1509b23f722e03c49f510b6b788ae35 /fs | |
parent | ca57120dfe2790a90fbafa3f7ced9c39d94d4698 (diff) | |
download | linux-fb8b941c75bd70ddfb0a8a3bb9bb770ed1d648f8.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_util.c b/fs/xfs/libxfs/xfs_inode_util.c index 032333289113..cc38e1c3c3e1 100644 --- a/fs/xfs/libxfs/xfs_inode_util.c +++ b/fs/xfs/libxfs/xfs_inode_util.c @@ -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; |