Skip to content

Commit 6e74750

Browse files
committed
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 <[email protected]> Reviewed-by: Carlos Maiolino <[email protected]>
1 parent 6eadbf4 commit 6e74750

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,6 @@ xfs_bmap_read_extents(
12801280
xfs_bmbt_rec_t *frp;
12811281
xfs_fsblock_t nextbno;
12821282
xfs_extnum_t num_recs;
1283-
xfs_extnum_t start;
12841283

12851284
num_recs = xfs_btree_get_numrecs(block);
12861285
if (unlikely(i + num_recs > room)) {
@@ -1303,7 +1302,6 @@ xfs_bmap_read_extents(
13031302
* Copy records into the extent records.
13041303
*/
13051304
frp = XFS_BMBT_REC_ADDR(mp, block, 1);
1306-
start = i;
13071305
for (j = 0; j < num_recs; j++, i++, frp++) {
13081306
xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i);
13091307
trp->l0 = be64_to_cpu(frp->l0);

0 commit comments

Comments
 (0)