summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-09 17:42:02 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:48 +0100
commit134f8331b2092de63def23d964a4620257bd8b8f (patch)
treef23943c4f2dd680b309e4a4d9a9b38617a3e4e52
parent61c39c5fae215032d63628bd16b7df68dc380405 (diff)
btrfs-progs: check: remove unused argument from maybe_repair_root_item
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-check.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmds-check.c b/cmds-check.c
index ff2535f1..2fd9578c 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -12321,8 +12321,7 @@ out:
return ret;
}
-static int maybe_repair_root_item(struct btrfs_fs_info *info,
- struct btrfs_path *path,
+static int maybe_repair_root_item(struct btrfs_path *path,
const struct btrfs_key *root_key,
const int read_only_mode)
{
@@ -12477,8 +12476,7 @@ again:
if (found_key.objectid == BTRFS_TREE_RELOC_OBJECTID)
goto next;
- ret = maybe_repair_root_item(info, &path, &found_key,
- trans ? 0 : 1);
+ ret = maybe_repair_root_item(&path, &found_key, trans ? 0 : 1);
if (ret < 0)
goto out;
if (ret) {