提交 35f46c5f 编写于 作者: D Dave Chinner 提交者: Dave Chinner

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: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NDave Chinner <dchinner@redhat.com>
Reviewed-by: NBrian Foster <bfoster@redhat.com>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 b2a21e7a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册