Skip to content

Commit cc12076

Browse files
author
Darrick J. Wong
committed
xfs: remove pointless shadow variable from xfs_difree_inobt
In xfs_difree_inobt, the pag passed in was previously used to look up the AGI buffer. There's no need to extract it again, so remove the shadow variable and shut up -Wshadow. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
1 parent 7ac14fa commit cc12076

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/xfs/libxfs/xfs_ialloc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,8 +1978,6 @@ xfs_difree_inobt(
19781978
*/
19791979
if (!xfs_has_ikeep(mp) && rec.ir_free == XFS_INOBT_ALL_FREE &&
19801980
mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK) {
1981-
struct xfs_perag *pag = agbp->b_pag;
1982-
19831981
xic->deleted = true;
19841982
xic->first_ino = XFS_AGINO_TO_INO(mp, pag->pag_agno,
19851983
rec.ir_startino);

0 commit comments

Comments
 (0)