aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-06-13 14:47:42 -0500
committerEric Sandeen <sandeen@redhat.com>2017-06-13 14:47:42 -0500
commit07f98c31d693731c05fd79b58cc3993f9a8fb359 (patch)
tree679d3ee4f63e61481f951e60918df64fc27bc99b
parentad1c97f13e8d8c9f1a61304a3dbbd7fddb2afd37 (diff)
downloadxfsprogs-dev-07f98c31d693731c05fd79b58cc3993f9a8fb359.tar.gz
xfs: fix warnings about unused stack variables
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>
-rw-r--r--libxfs/xfs_bmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c
index ffc2f57025..2ad6f5a641 100644
--- a/libxfs/xfs_bmap.c
+++ b/libxfs/xfs_bmap.c
@@ -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);