From: Christoph Hellwig Date: Fri, 21 Apr 2017 18:24:40 +0000 (-0700) Subject: xfs: use NULL instead of 0 to initialize a pointer in xfs_ioc_getfsmap X-Git-Tag: v4.12-rc1~76^2~14 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6;p=users%2Fjedix%2Flinux-maple.git xfs: use NULL instead of 0 to initialize a pointer in xfs_ioc_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_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;