]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove pointless error goto in xfs_bmap_remap_alloc
authorEric Sandeen <sandeen@redhat.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: fe23759eaf2f6540de20c1623f066aad967ff9c9

The commit:

f65306ea xfs: map an inode's offset to an exact physical block

added a pointless error0: target; remove it.

Addresses-Coverity-Id: 1373865
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_bmap.c

index 427cd2fbe145b37828916f9535c8d399a13b0f76..d2b371a31a941894ef009bf97d944ecf2d4b8c36 100644 (file)
@@ -3966,9 +3966,6 @@ xfs_bmap_remap_alloc(
         * allocating, so skip that check by pretending to be freeing.
         */
        error = xfs_alloc_fix_freelist(&args, XFS_ALLOC_FLAG_FREEING);
-       if (error)
-               goto error0;
-error0:
        xfs_perag_put(args.pag);
        if (error)
                trace_xfs_bmap_remap_alloc_error(ap->ip, error, _RET_IP_);