]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: fix warnings about unused stack variables
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 13 Jun 2017 19:47:42 +0000 (14:47 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 13 Jun 2017 19:47:42 +0000 (14:47 -0500)
Source kernel commit: 6e747506dde195d3d05fe2bb8ef78aceba28a5e3

Reduce stack usage and get rid of compiler warnings by eliminating
unused variables.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c

index ffc2f570255204f51187fd70fc476d783e09561b..2ad6f5a6418f13c76df92b03bdf32bac1029a23c 100644 (file)
@@ -1271,7 +1271,6 @@ xfs_bmap_read_extents(
                xfs_bmbt_rec_t  *frp;
                xfs_fsblock_t   nextbno;
                xfs_extnum_t    num_recs;
-               xfs_extnum_t    start;
 
                num_recs = xfs_btree_get_numrecs(block);
                if (unlikely(i + num_recs > room)) {
@@ -1294,7 +1293,6 @@ xfs_bmap_read_extents(
                 * Copy records into the extent records.
                 */
                frp = XFS_BMBT_REC_ADDR(mp, block, 1);
-               start = i;
                for (j = 0; j < num_recs; j++, i++, frp++) {
                        xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i);
                        trp->l0 = be64_to_cpu(frp->l0);