From: Dan Carpenter Date: Wed, 24 Aug 2022 14:24:35 +0000 (+0200) Subject: xfs: delete unnecessary NULL checks X-Git-Tag: v6.0.0-rc0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17df7eb7ef2e026aeb5339b5ce8d4e669c03be9b;p=thirdparty%2Fxfsprogs-dev.git xfs: delete unnecessary NULL checks Source kernel commit: 3f52e016af600982989b5dee958d313c52483c92 These NULL check are no long needed after commit 2ed5b09b3e8f ("xfs: make inode attribute forks a permanent part of struct xfs_inode"). Signed-off-by: Dan Carpenter Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- diff --git a/libxfs/xfs_inode_fork.c b/libxfs/xfs_inode_fork.c index 02982825b..7f5e5c487 100644 --- a/libxfs/xfs_inode_fork.c +++ b/libxfs/xfs_inode_fork.c @@ -722,8 +722,7 @@ xfs_ifork_verify_local_attr( if (fa) { xfs_inode_verifier_error(ip, -EFSCORRUPTED, "attr fork", - ifp ? ifp->if_u1.if_data : NULL, - ifp ? ifp->if_bytes : 0, fa); + ifp->if_u1.if_data, ifp->if_bytes, fa); return -EFSCORRUPTED; }