diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-08-25 02:05:13 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-08-25 02:05:13 +0200 |
commit | f79af0b9090895520c69fbe1939184c4f8ed8426 (patch) | |
tree | 0aa681a8284ae238dce7b5a158332ce055b42052 /fs/xfs/xfs_buf.c | |
parent | xfs: collapse allocsize and biosize mount option handling (diff) | |
download | linux-f79af0b9090895520c69fbe1939184c4f8ed8426.tar.xz linux-f79af0b9090895520c69fbe1939184c4f8ed8426.zip |
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.c | 4 |
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( xfs_buf_flags_t flags, xfs_buf_t *new_bp) { - size_t numbytes; struct xfs_perag *pag; struct rb_node **rbp; struct rb_node *parent; @@ -450,10 +449,9 @@ _xfs_buf_find( for (i = 0; i < nmaps; i++) numblks += map[i].bm_len; - numbytes = BBTOB(numblks); /* Check for IOs smaller than the sector size / not sector aligned */ - ASSERT(!(numbytes < btp->bt_meta_sectorsize)); + ASSERT(!(BBTOB(numblks) < btp->bt_meta_sectorsize)); ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask)); /* |