Browse Source

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>
Christoph Hellwig 8 years ago
parent
commit
ef2b67ecf8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/xfs/xfs_ioctl.c

+ 1 - 1
fs/xfs/xfs_ioctl.c

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