summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-10 07:30:36 +1000
committerDave Chinner <david@fromorbit.com>2014-06-10 07:30:36 +1000
commit35f46c5f04cc7c45ce59d3ba4c28ba138184414b (patch)
tree49d523fea78be31a931cf3d53f102d0e0f98cdc2 /fs/xfs
parentb2a21e7a6bfa6aa1b712fb6167d37a96f332d3d5 (diff)
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')
-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 ca1f43cd393..48e99afb9cb 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;