mirror of https://gitee.com/openkylin/linux.git
xfs: remove redundant assignment of ifp
Remove redundant ifp = ifp statement, it does nothing. Found with static analysis by CoverityScan. Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
1001354ca3
commit
1d55a4bfd0
|
@ -5204,7 +5204,7 @@ xfs_bunmapi_cow(
|
||||||
ep = xfs_bmap_search_extents(ip, del->br_startoff, XFS_COW_FORK, &eof,
|
ep = xfs_bmap_search_extents(ip, del->br_startoff, XFS_COW_FORK, &eof,
|
||||||
&eidx, &got, &new);
|
&eidx, &got, &new);
|
||||||
|
|
||||||
ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); ifp = ifp;
|
ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK);
|
||||||
ASSERT((eidx >= 0) && (eidx < ifp->if_bytes /
|
ASSERT((eidx >= 0) && (eidx < ifp->if_bytes /
|
||||||
(uint)sizeof(xfs_bmbt_rec_t)));
|
(uint)sizeof(xfs_bmbt_rec_t)));
|
||||||
ASSERT(del->br_blockcount > 0);
|
ASSERT(del->br_blockcount > 0);
|
||||||
|
|
Loading…
Reference in New Issue