btrfs: Clean up unused variables in free-space-tree.c
authorChristos Gkekas <chris.gekas@gmail.com>
Thu, 12 Oct 2017 21:40:42 +0000 (22:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
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>
fs/btrfs/free-space-tree.c

index 684f12247db7e376350789b6161190c6412431b7..fe5e0324dca9233205a3c176f10a893dba8c9136 100644 (file)
@@ -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);