diff options
author | Byongho Lee <bhlee.kernel@gmail.com> | 2016-01-04 10:01:30 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-12 15:01:05 +0100 |
commit | 83d0a1727b9122d3e7e04943aeb2af5f4203d1fc (patch) | |
tree | a574d4380770c3d9c14c37aa28bff8ae706a6933 /qgroup.c | |
parent | dea6b51bae9333127e160ce75988dade61966062 (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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |