From cc2b0e59892c967a79f650ca8ab655e8507991b9 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 9 Feb 2017 17:42:02 +0100 Subject: [PATCH] btrfs-progs: check: remove unused argument from check_child_node Signed-off-by: David Sterba --- cmds-check.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index f99667b..f1e9a5f 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; -- 2.7.4