From: Kaixu Xia Date: Wed, 16 Sep 2020 21:31:55 +0000 (-0700) Subject: xfs: remove the unnecessary xfs_dqid_t type cast X-Git-Tag: v5.10.7~1324^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5aff6750d56d1bbcbb525ddc6dd6b36bc426c5e7;p=platform%2Fkernel%2Flinux-rpi.git xfs: remove the unnecessary xfs_dqid_t type cast Since the type prid_t and xfs_dqid_t both are uint32_t, seems the type cast is unnecessary, so remove it. Signed-off-by: Kaixu Xia Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 3f82e0c..41a459f 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -1715,7 +1715,7 @@ xfs_qm_vop_dqalloc( if ((flags & XFS_QMOPT_PQUOTA) && XFS_IS_PQUOTA_ON(mp)) { if (ip->i_d.di_projid != prid) { xfs_iunlock(ip, lockflags); - error = xfs_qm_dqget(mp, (xfs_dqid_t)prid, + error = xfs_qm_dqget(mp, prid, XFS_DQTYPE_PROJ, true, &pq); if (error) { ASSERT(error != -ENOENT);