diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-05-12 13:44:11 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-05-16 12:24:36 -0400 |
commit | 6e747506dde195d3d05fe2bb8ef78aceba28a5e3 (patch) | |
tree | 92961e9ce4b538e783a66f18c2f6972caf45f76c | |
parent | 6eadbf4c8ba816c10d1c97bed9aa861d9fd17809 (diff) |
xfs: fix warnings about unused stack variables
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>
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 8adb91b05588..a7048eafa8e6 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c | |||
@@ -1280,7 +1280,6 @@ xfs_bmap_read_extents( | |||
1280 | xfs_bmbt_rec_t *frp; | 1280 | xfs_bmbt_rec_t *frp; |
1281 | xfs_fsblock_t nextbno; | 1281 | xfs_fsblock_t nextbno; |
1282 | xfs_extnum_t num_recs; | 1282 | xfs_extnum_t num_recs; |
1283 | xfs_extnum_t start; | ||
1284 | 1283 | ||
1285 | num_recs = xfs_btree_get_numrecs(block); | 1284 | num_recs = xfs_btree_get_numrecs(block); |
1286 | if (unlikely(i + num_recs > room)) { | 1285 | if (unlikely(i + num_recs > room)) { |
@@ -1303,7 +1302,6 @@ xfs_bmap_read_extents( | |||
1303 | * Copy records into the extent records. | 1302 | * Copy records into the extent records. |
1304 | */ | 1303 | */ |
1305 | frp = XFS_BMBT_REC_ADDR(mp, block, 1); | 1304 | frp = XFS_BMBT_REC_ADDR(mp, block, 1); |
1306 | start = i; | ||
1307 | for (j = 0; j < num_recs; j++, i++, frp++) { | 1305 | for (j = 0; j < num_recs; j++, i++, frp++) { |
1308 | xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i); | 1306 | xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i); |
1309 | trp->l0 = be64_to_cpu(frp->l0); | 1307 | trp->l0 = be64_to_cpu(frp->l0); |