Skip to content

Commit

Permalink
btrfs: Clean up unused variables in free-space-tree.c
Browse files Browse the repository at this point in the history
Remove variables 'start' and 'end', which are set but never used.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Christos Gkekas authored and David Sterba committed Oct 30, 2017
1 parent 709a95c commit 9e882d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/btrfs/free-space-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,12 +1286,8 @@ static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
struct btrfs_block_group_cache *block_group,
struct btrfs_path *path)
{
u64 start, end;
int ret;

start = block_group->key.objectid;
end = block_group->key.objectid + block_group->key.offset;

block_group->needs_free_space = 0;

ret = add_new_free_space_info(trans, fs_info, block_group, path);
Expand Down

0 comments on commit 9e882d6

Please sign in to comment.