summaryrefslogtreecommitdiff
path: root/qgroup.c
diff options
context:
space:
mode:
authorByongho Lee <bhlee.kernel@gmail.com>2016-01-04 10:01:30 +0900
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:05 +0100
commit83d0a1727b9122d3e7e04943aeb2af5f4203d1fc (patch)
treea574d4380770c3d9c14c37aa28bff8ae706a6933 /qgroup.c
parentdea6b51bae9333127e160ce75988dade61966062 (diff)
btrfs-progs: use NULL instead of 0
Fix the code assigning 0 to pointer instead of NULL. Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'qgroup.c')
-rw-r--r--qgroup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/qgroup.c b/qgroup.c
index 1fbfcb97..f56f51a0 100644
--- a/qgroup.c
+++ b/qgroup.c
@@ -1117,7 +1117,8 @@ static int __qgroups_search(int fd, struct qgroup_lookup *qgroup_lookup)
btrfs_stack_qgroup_info_exclusive_compressed
(info);
add_qgroup(qgroup_lookup, sh->offset, a1, a2,
- a3, a4, a5, 0, 0, 0, 0, 0, 0, 0);
+ a3, a4, a5, 0, 0, 0, 0, 0,
+ NULL, NULL);
} else if (sh->type == BTRFS_QGROUP_LIMIT_KEY) {
limit = (struct btrfs_qgroup_limit_item *)
(args.buf + off);
@@ -1132,7 +1133,8 @@ static int __qgroups_search(int fd, struct qgroup_lookup *qgroup_lookup)
a5 = btrfs_stack_qgroup_limit_rsv_exclusive
(limit);
add_qgroup(qgroup_lookup, sh->offset, 0, 0,
- 0, 0, 0, a1, a2, a3, a4, a5, 0, 0);
+ 0, 0, 0, a1, a2, a3, a4, a5,
+ NULL, NULL);
} else if (sh->type == BTRFS_QGROUP_RELATION_KEY) {
if (sh->offset < sh->objectid)
goto skip;