From 4b9e29b9d09c9d69a75fdcf46d3e9fea8e86323f 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 fix_key_order Signed-off-by: David Sterba --- cmds-check.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 99ee088..6cef9c7 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -5540,9 +5540,7 @@ static int swap_values(struct btrfs_root *root, struct btrfs_path *path, return 0; } -static int fix_key_order(struct btrfs_trans_handle *trans, - struct btrfs_root *root, - struct btrfs_path *path) +static int fix_key_order(struct btrfs_root *root, struct btrfs_path *path) { struct extent_buffer *buf; struct btrfs_key k1, k2; @@ -5733,7 +5731,7 @@ static int try_to_fix_bad_block(struct btrfs_root *root, break; } if (status == BTRFS_TREE_BLOCK_BAD_KEY_ORDER) - ret = fix_key_order(trans, search_root, &path); + ret = fix_key_order(search_root, &path); else if (status == BTRFS_TREE_BLOCK_INVALID_OFFSETS) ret = fix_item_offset(trans, search_root, &path); if (ret) { -- 2.7.4