diff options
author | Qu Wenruo <wqu@suse.com> | 2018-03-22 17:06:24 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-30 22:15:55 +0200 |
commit | 35a629514ee0902171a4f76cd8145af6c750b3ac (patch) | |
tree | 16a142ce6852b96ab7b47452ad3614e21043a5c2 /check | |
parent | c074434fb5f0874dcf8523191359976b668527f8 (diff) |
btrfs-progs: check/original: Remove unused variable first_key
This @first_key variable is introduced in f5c4c4f3b75b
("btrfsck: add code to rebuild extent records"), however it's not only
unused, but also used incorrectly.
It's calling btrfs_item_key_to_cpu() on an node extent buffer.
Anyway, just remove it.
Fixes: f5c4c4f3b75b ("btrfsck: add code to rebuild extent records")
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check')
-rw-r--r-- | check/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/check/main.c b/check/main.c index b476e07b..891a6d79 100644 --- a/check/main.c +++ b/check/main.c @@ -6103,12 +6103,7 @@ static int run_next_block(struct btrfs_root *root, } } else { int level; - struct btrfs_key first_key; - first_key.objectid = 0; - - if (nritems > 0) - btrfs_item_key_to_cpu(buf, &first_key, 0); level = btrfs_header_level(buf); for (i = 0; i < nritems; i++) { struct extent_record tmpl; |