aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-08-24 20:05:13 -0400
committerDave Chinner <david@fromorbit.com>2015-08-24 20:05:13 -0400
commitf79af0b9090895520c69fbe1939184c4f8ed8426 (patch)
tree0aa681a8284ae238dce7b5a158332ce055b42052 /fs/xfs/xfs_buf.c
parent2ccf4a9b18868b0900072e6d5d15a04254a07345 (diff)
xfs: fix non-debug build warnings
There seem to be a couple of new set-but-unused build warnings that gcc 4.9.3 is now warning about. These are not regressions, just the compiler being more picky. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r--fs/xfs/xfs_buf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index a4b7d92e946c..fbf4c269a7b7 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -438,7 +438,6 @@ _xfs_buf_find(
438 xfs_buf_flags_t flags, 438 xfs_buf_flags_t flags,
439 xfs_buf_t *new_bp) 439 xfs_buf_t *new_bp)
440{ 440{
441 size_t numbytes;
442 struct xfs_perag *pag; 441 struct xfs_perag *pag;
443 struct rb_node **rbp; 442 struct rb_node **rbp;
444 struct rb_node *parent; 443 struct rb_node *parent;
@@ -450,10 +449,9 @@ _xfs_buf_find(
450 449
451 for (i = 0; i < nmaps; i++) 450 for (i = 0; i < nmaps; i++)
452 numblks += map[i].bm_len; 451 numblks += map[i].bm_len;
453 numbytes = BBTOB(numblks);
454 452
455 /* Check for IOs smaller than the sector size / not sector aligned */ 453 /* Check for IOs smaller than the sector size / not sector aligned */
456 ASSERT(!(numbytes < btp->bt_meta_sectorsize)); 454 ASSERT(!(BBTOB(numblks) < btp->bt_meta_sectorsize));
457 ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask)); 455 ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask));
458 456
459 /* 457 /*