Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35f46c5f authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner
Browse files

xfs: fix xfs_da_args sparse warning in xfs_readdir



The kbuild test robot reported:

>> fs/xfs/xfs_dir2_readdir.c:672:41: sparse: Using plain integer as NULL pointer

Fix it.

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent b2a21e7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -669,7 +669,7 @@ xfs_readdir(
	struct dir_context	*ctx,
	struct dir_context	*ctx,
	size_t			bufsize)
	size_t			bufsize)
{
{
	struct xfs_da_args	args = {0};
	struct xfs_da_args	args = { NULL };
	int			rval;
	int			rval;
	int			v;
	int			v;
	uint			lock_mode;
	uint			lock_mode;