Skip to content

Commit d5cc14d

Browse files
asurti9djwong
authored andcommitted
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 <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 6374ca0 commit d5cc14d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/xfs/scrub/refcount.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ xchk_refcountbt_rec(
341341
xfs_extlen_t len;
342342
xfs_nlink_t refcount;
343343
bool has_cowflag;
344-
int error = 0;
345344

346345
bno = be32_to_cpu(rec->refc.rc_startblock);
347346
len = be32_to_cpu(rec->refc.rc_blockcount);
@@ -366,7 +365,7 @@ xchk_refcountbt_rec(
366365

367366
xchk_refcountbt_xref(bs->sc, bno, len, refcount);
368367

369-
return error;
368+
return 0;
370369
}
371370

372371
/* Make sure we have as many refc blocks as the rmap says. */

0 commit comments

Comments
 (0)