From: Christoph Hellwig Date: Fri, 21 Apr 2017 18:24:39 +0000 (-0700) Subject: xfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap X-Git-Tag: v4.12-rc1~76^2~15 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=fad5656b2247244c9fe4f30d63e4c190c5725840;p=karo-tx-linux.git xfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap Found by sparse. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- 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;