summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAliasgar Surti <aliasgar.surti500@gmail.com>2019-09-30 14:31:48 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2019-10-06 18:39:05 -0400
commitd5cc14d9f92833bd71219bf7fff180f097c3816d (patch)
treef7d4b091c2f6bef89d5aefb514ab971a46586cf3
parent6374ca03975ab0a2b1a5ced222e0ef2ea6e22f9e (diff)
xfs: removed unused error variable from xchk_refcountbt_rec
Removed unused error variable. Instead of using error variable, returned the value directly 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>
-rw-r--r--fs/xfs/scrub/refcount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/scrub/refcount.c b/fs/xfs/scrub/refcount.c
index 93b3793bc5b3..0cab11a5d390 100644
--- a/fs/xfs/scrub/refcount.c
+++ b/fs/xfs/scrub/refcount.c
@@ -341,7 +341,6 @@ xchk_refcountbt_rec(
341 xfs_extlen_t len; 341 xfs_extlen_t len;
342 xfs_nlink_t refcount; 342 xfs_nlink_t refcount;
343 bool has_cowflag; 343 bool has_cowflag;
344 int error = 0;
345 344
346 bno = be32_to_cpu(rec->refc.rc_startblock); 345 bno = be32_to_cpu(rec->refc.rc_startblock);
347 len = be32_to_cpu(rec->refc.rc_blockcount); 346 len = be32_to_cpu(rec->refc.rc_blockcount);
@@ -366,7 +365,7 @@ xchk_refcountbt_rec(
366 365
367 xchk_refcountbt_xref(bs->sc, bno, len, refcount); 366 xchk_refcountbt_xref(bs->sc, bno, len, refcount);
368 367
369 return error; 368 return 0;
370} 369}
371 370
372/* Make sure we have as many refc blocks as the rmap says. */ 371/* Make sure we have as many refc blocks as the rmap says. */