summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig2017-04-21 20:24:40 +0200
committerDarrick J. Wong2017-04-25 18:40:41 +0200
commitef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6 (patch)
tree0d104026ac5f3055c49d27d44604323e4feef2ad /fs/xfs
parentxfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap (diff)
downloadkernel-qcow2-linux-ef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6.tar.gz
kernel-qcow2-linux-ef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6.tar.xz
kernel-qcow2-linux-ef2b67ecf8ddbcb30f98f7ce6876872fb3e925f6.zip
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
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;