diff options
author | Aliasgar Surti <aliasgar.surti500@gmail.com> | 2019-09-23 22:00:56 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-09-23 22:00:56 +0200 |
commit | 583e4eff98fab8d4d3a44114b44408b6a4ad0737 (patch) | |
tree | eb9231b546f26e5b888c52947ea3c8b53fb5e7bf /fs | |
parent | xfs: convert inode to extent format after extent merge due to shift (diff) | |
download | linux-583e4eff98fab8d4d3a44114b44408b6a4ad0737.tar.xz linux-583e4eff98fab8d4d3a44114b44408b6a4ad0737.zip |
xfs: removed unneeded variable
Returned value directly instead of using variable as it wasn't updated.
Signed-off-by: Aliasgar Surti <aliasgar.surti500@gmail.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/scrub/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/scrub/alloc.c b/fs/xfs/scrub/alloc.c index a43d1813c4ff..5533e48e605d 100644 --- a/fs/xfs/scrub/alloc.c +++ b/fs/xfs/scrub/alloc.c @@ -97,7 +97,6 @@ xchk_allocbt_rec( xfs_agnumber_t agno = bs->cur->bc_private.a.agno; xfs_agblock_t bno; xfs_extlen_t len; - int error = 0; bno = be32_to_cpu(rec->alloc.ar_startblock); len = be32_to_cpu(rec->alloc.ar_blockcount); @@ -109,7 +108,7 @@ xchk_allocbt_rec( xchk_allocbt_xref(bs->sc, bno, len); - return error; + return 0; } /* Scrub the freespace btrees for some AG. */ |