Skip to content

Commit 583e4ef

Browse files
asurti9djwong
authored andcommitted
xfs: removed unneeded variable
Returned value directly instead of using variable 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 e20e174 commit 583e4ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/xfs/scrub/alloc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ xchk_allocbt_rec(
9797
xfs_agnumber_t agno = bs->cur->bc_private.a.agno;
9898
xfs_agblock_t bno;
9999
xfs_extlen_t len;
100-
int error = 0;
101100

102101
bno = be32_to_cpu(rec->alloc.ar_startblock);
103102
len = be32_to_cpu(rec->alloc.ar_blockcount);
@@ -109,7 +108,7 @@ xchk_allocbt_rec(
109108

110109
xchk_allocbt_xref(bs->sc, bno, len);
111110

112-
return error;
111+
return 0;
113112
}
114113

115114
/* Scrub the freespace btrees for some AG. */

0 commit comments

Comments
 (0)