sparse complains about the initialization used for the allocation cursor: >> fs/xfs/libxfs/xfs_alloc.c:1170:41: sparse: sparse: Using plain integer as NULL pointer Fix it by removing the unnecessary initialization value. Reported-by: kbuild test robot <lkp@xxxxxxxxx> Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx> --- fs/xfs/libxfs/xfs_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index e9f74eb92073..925eba9489d5 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c @@ -1471,7 +1471,7 @@ STATIC int xfs_alloc_ag_vextent_near( struct xfs_alloc_arg *args) { - struct xfs_alloc_cur acur = {0,}; + struct xfs_alloc_cur acur = {}; int error; /* error code */ int i; /* result code, temporary */ xfs_agblock_t bno; -- 2.20.1