]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xfs: remove pointless error goto in xfs_bmap_remap_alloc
authorEric Sandeen <sandeen@redhat.com>
Thu, 20 Oct 2016 04:44:53 +0000 (15:44 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:44:53 +0000 (15:44 +1100)
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>
fs/xfs/libxfs/xfs_bmap.c

index 0283b7eaf973c0ddf96748f3a2096c20c58a5e06..80bdb11ca6bfb667ac92c60df96a6839b699f2d8 100644 (file)
@@ -3974,9 +3974,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_);