From: David Sterba Date: Thu, 9 Feb 2017 16:42:02 +0000 (+0100) Subject: btrfs-progs: check: remove unused argument from check_child_node X-Git-Tag: upstream/4.16.1~766 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc2b0e59892c967a79f650ca8ab655e8507991b9;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: check: remove unused argument from check_child_node Signed-off-by: David Sterba --- 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;