Skip to content

Commit ee366fe

Browse files
author
Darrick J. Wong
committed
xfs: don't shadow @leaf in xchk_xattr_block
Don't shadow the leaf variable here, because it's misleading to have one place in the codebase where two variables with different types have the same name. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
1 parent c12ad41 commit ee366fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/xfs/scrub/attr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ xchk_xattr_block(
342342

343343
/* Check all the padding. */
344344
if (xfs_has_crc(ds->sc->mp)) {
345-
struct xfs_attr3_leafblock *leaf = bp->b_addr;
345+
struct xfs_attr3_leafblock *leaf3 = bp->b_addr;
346346

347-
if (leaf->hdr.pad1 != 0 || leaf->hdr.pad2 != 0 ||
348-
leaf->hdr.info.hdr.pad != 0)
347+
if (leaf3->hdr.pad1 != 0 || leaf3->hdr.pad2 != 0 ||
348+
leaf3->hdr.info.hdr.pad != 0)
349349
xchk_da_set_corrupt(ds, level);
350350
} else {
351351
if (leaf->hdr.pad1 != 0 || leaf->hdr.info.pad != 0)

0 commit comments

Comments
 (0)