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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Dave Chinner 2014-06-10 07:30:36 +10:00 committed by Dave Chinner
parent b2a21e7a6b
commit 35f46c5f04

View File

@ -669,7 +669,7 @@ xfs_readdir(
struct dir_context *ctx,
size_t bufsize)
{
struct xfs_da_args args = {0};
struct xfs_da_args args = { NULL };
int rval;
int v;
uint lock_mode;