]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: delete unnecessary NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 24 Aug 2022 14:24:35 +0000 (16:24 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 30 Aug 2022 08:31:13 +0000 (10:31 +0200)
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 <dan.carpenter@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_inode_fork.c

index 02982825b3c77a8a7eecc1332af130fb85d6b14d..7f5e5c4870da1853024f768899c8773c1616f72b 100644 (file)
@@ -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;
        }