]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove redundant assignment of ifp
authorColin Ian King <colin.king@canonical.com>
Tue, 25 Oct 2016 01:47:14 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:14 +0000 (12:47 +1100)
Source kernel commit: 1d55a4bfd080ff4c6c96acfccfb7cdd2615ed6c2

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>
libxfs/xfs_bmap.c

index 4f0146241058b33530e520578a424ba93103bda7..427cd2fbe145b37828916f9535c8d399a13b0f76 100644 (file)
@@ -5196,7 +5196,7 @@ xfs_bunmapi_cow(
        ep = xfs_bmap_search_extents(ip, del->br_startoff, XFS_COW_FORK, &eof,
                        &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 /
                (uint)sizeof(xfs_bmbt_rec_t)));
        ASSERT(del->br_blockcount > 0);