diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-21 11:24:40 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-04-25 09:40:41 -0700 |
commit | ef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6 (patch) | |
tree | 0d104026ac5f3055c49d27d44604323e4feef2ad /fs/xfs/xfs_ioctl.c | |
parent | fad5656b2247244c9fe4f30d63e4c190c5725840 (diff) |
xfs: use NULL instead of 0 to initialize a pointer in xfs_ioc_getfsmap
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>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index fee6b4a3a83d..0f8bed9a7e4c 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -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; |