diff options
author | David Sterba <dsterba@suse.com> | 2017-02-09 17:42:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:48 +0100 |
commit | cc2b0e59892c967a79f650ca8ab655e8507991b9 (patch) | |
tree | 0cfaebd2e6a6467c3c8ca53917ce2aacf5b13bae | |
parent | e9ca9978b22aa09dc0f67e1dac36b303330e7888 (diff) |
btrfs-progs: check: remove unused argument from check_child_node
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | cmds-check.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmds-check.c b/cmds-check.c index f99667b2..f1e9a5fd 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -1983,8 +1983,7 @@ static void reada_walk_down(struct btrfs_root *root, * which makes leaf owner check not so strong, key check should be * sufficient enough for that case. */ -static int check_child_node(struct btrfs_root *root, - struct extent_buffer *parent, int slot, +static int check_child_node(struct extent_buffer *parent, int slot, struct extent_buffer *child) { struct btrfs_key parent_key; @@ -2184,7 +2183,7 @@ static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, } } - ret = check_child_node(root, cur, path->slots[*level], next); + ret = check_child_node(cur, path->slots[*level], next); if (ret) { err = ret; goto out; @@ -2292,7 +2291,7 @@ static int walk_down_tree_v2(struct btrfs_root *root, struct btrfs_path *path, } } - ret = check_child_node(root, cur, path->slots[*level], next); + ret = check_child_node(cur, path->slots[*level], next); if (ret < 0) break; |