mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-13 01:01:13 +00:00
btrfs-progs: check: remove unused variable in record_extent
In a similar code, it's used for a message. Not used in this code since the beggingin, safe to remove. Resolves-coverity-id: 1364085 Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d1ec1fe602
commit
e680b4e5ad
@ -6670,7 +6670,6 @@ static int record_extent(struct btrfs_trans_handle *trans,
|
|||||||
struct extent_buffer *leaf;
|
struct extent_buffer *leaf;
|
||||||
struct btrfs_key ins_key;
|
struct btrfs_key ins_key;
|
||||||
struct btrfs_extent_item *ei;
|
struct btrfs_extent_item *ei;
|
||||||
struct tree_backref *tback;
|
|
||||||
struct data_backref *dback;
|
struct data_backref *dback;
|
||||||
struct btrfs_tree_block_info *bi;
|
struct btrfs_tree_block_info *bi;
|
||||||
|
|
||||||
@ -6706,7 +6705,6 @@ static int record_extent(struct btrfs_trans_handle *trans,
|
|||||||
} else {
|
} else {
|
||||||
struct btrfs_disk_key copy_key;;
|
struct btrfs_disk_key copy_key;;
|
||||||
|
|
||||||
tback = to_tree_backref(back);
|
|
||||||
bi = (struct btrfs_tree_block_info *)(ei + 1);
|
bi = (struct btrfs_tree_block_info *)(ei + 1);
|
||||||
memset_extent_buffer(leaf, 0, (unsigned long)bi,
|
memset_extent_buffer(leaf, 0, (unsigned long)bi,
|
||||||
sizeof(*bi));
|
sizeof(*bi));
|
||||||
@ -6772,6 +6770,7 @@ static int record_extent(struct btrfs_trans_handle *trans,
|
|||||||
dback->found_ref);
|
dback->found_ref);
|
||||||
} else {
|
} else {
|
||||||
u64 parent;
|
u64 parent;
|
||||||
|
struct tree_backref *tback;
|
||||||
|
|
||||||
tback = to_tree_backref(back);
|
tback = to_tree_backref(back);
|
||||||
if (back->full_backref)
|
if (back->full_backref)
|
||||||
|
Loading…
Reference in New Issue
Block a user