summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dir2_readdir.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-10 01:30:36 +0400
committerDave Chinner <david@fromorbit.com>2014-06-10 01:30:36 +0400
commit35f46c5f04cc7c45ce59d3ba4c28ba138184414b (patch)
tree49d523fea78be31a931cf3d53f102d0e0f98cdc2 /fs/xfs/xfs_dir2_readdir.c
parentb2a21e7a6bfa6aa1b712fb6167d37a96f332d3d5 (diff)
downloadlinux-35f46c5f04cc7c45ce59d3ba4c28ba138184414b.tar.xz
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>
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r--fs/xfs/xfs_dir2_readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c
index ca1f43cd3939..48e99afb9cb0 100644
--- a/fs/xfs/xfs_dir2_readdir.c
+++ b/fs/xfs/xfs_dir2_readdir.c
@@ -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;