xfs: use NULL instead of 0 to initialize a pointer in xfs_ioc_getfsmap
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 18:24:40 +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_ioctl.c

index fee6b4a3a83d4bbc00fdc384434d5b515e78f11b..0f8bed9a7e4c6aa57952b9108bf0f30bd1f44fc3 100644 (file)
@@ -1640,7 +1640,7 @@ xfs_ioc_getfsmap(
        struct xfs_inode        *ip,
        void                    __user *arg)
 {
-       struct getfsmap_info    info = {0};
+       struct getfsmap_info    info = { NULL };
        struct xfs_fsmap_head   xhead = {0};
        struct fsmap_head       head;
        bool                    aborted = false;