xfs: remove pointless error goto in xfs_bmap_remap_alloc
[cascardo/linux.git] / fs / xfs / libxfs / xfs_bmap.c
index c27344c..80bdb11 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_);
@@ -5204,7 +5201,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);