summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_fsmap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-21 20:24:39 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2017-04-25 18:40:41 +0200
commitfad5656b2247244c9fe4f30d63e4c190c5725840 (patch)
tree5164e6f8832b9b1cd365642181863596810f3e62 /fs/xfs/xfs_fsmap.c
parentxfs: simplify validation of the unwritten extent bit (diff)
downloadlinux-fad5656b2247244c9fe4f30d63e4c190c5725840.tar.xz
linux-fad5656b2247244c9fe4f30d63e4c190c5725840.zip
xfs: use NULL instead of 0 to initialize a pointer in xfs_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_fsmap.c')
-rw-r--r--fs/xfs/xfs_fsmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_fsmap.c b/fs/xfs/xfs_fsmap.c
index 48ce356da9e9..3683819887a5 100644
--- a/fs/xfs/xfs_fsmap.c
+++ b/fs/xfs/xfs_fsmap.c
@@ -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;