xfs: delete unnecessary NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jul 2022 17:13:48 +0000 (10:13 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 20 Jul 2022 23:40:38 +0000 (16:40 -0700)
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 <dan.carpenter@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_inode_fork.c

index 7c34184..fa699f3 100644 (file)
@@ -724,8 +724,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;
        }