From: Aliasgar Surti Date: Mon, 30 Sep 2019 18:31:48 +0000 (-0700) Subject: xfs: removed unused error variable from xchk_refcountbt_rec X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~1871^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d5cc14d9f92833bd71219bf7fff180f097c3816d;p=mirror_ubuntu-focal-kernel.git 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 Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- 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( xfs_extlen_t len; xfs_nlink_t refcount; bool has_cowflag; - int error = 0; bno = be32_to_cpu(rec->refc.rc_startblock); len = be32_to_cpu(rec->refc.rc_blockcount); @@ -366,7 +365,7 @@ xchk_refcountbt_rec( xchk_refcountbt_xref(bs->sc, bno, len, refcount); - return error; + return 0; } /* Make sure we have as many refc blocks as the rmap says. */