xfs: delete unnecessary NULL checks
Subsystems (2)
PATCH 1/1 xfs: delete unnecessary NULL checks
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 <[email protected]>
--- fs/xfs/libxfs/xfs_inode_fork.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/xfs/libxfs/xfs_inode_fork.c +1 -2
@@ -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 ; }
Signature · 1 line
2.35.1
Quoted 4 lines · Dan Carpenter
These NULL check are no long needed after commit
2ed5b09b3e8f("xfs:
make inode attribute forks a permanent part of structxfs_inode").Signed-off-by Dan Carpenter <[email protected]>
Looks correct,
Reviewed-by Darrick J. Wong <[email protected]>
--D
Quoted 21 lines
--- fs/xfs/libxfs/xfs_inode_fork.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)fs/xfs/libxfs/xfs_inode_fork.c +1
-2@@ -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 ; }Signature · 1 line
2.35.1