xfs: use NULL instead of 0 to initialize a pointer in xfs_ioc_getfsmap

Found by sparse.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
This commit is contained in:
Christoph Hellwig 2017-04-21 11:24:40 -07:00 • committed by Darrick J. Wong
commit ef2b67ecf8

View file

@ -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;