xfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 18:24:39 +0000 (11:24 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Apr 2017 16:40:41 +0000 (09:40 -0700)
Found by sparse.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_fsmap.c

index 48ce356da9e9040cccaedb32162ebaafbbe6ac03..3683819887a5658eff23d6e3258d21567bbdc0b4 100644 (file)
@@ -827,7 +827,7 @@ xfs_getfsmap(
        struct xfs_trans                *tp = NULL;
        struct xfs_fsmap                dkeys[2];       /* per-dev keys */
        struct xfs_getfsmap_dev         handlers[XFS_GETFSMAP_DEVS];
-       struct xfs_getfsmap_info        info = {0};
+       struct xfs_getfsmap_info        info = { NULL };
        int                             i;
        int                             error = 0;