Skip to contentSkip to conversation

btrfs: Clean up unused variables in free-space-tree.c

PATCH In review Christos Gkekas 3 participants 3 messages Oct 12, 2017 – Oct 13, 2017 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: Clean up unused variables in free-space-tree.c

Remove variables 'start' and 'end', which are set but never used.

---
 fs/btrfs/free-space-tree.c | 4 ----
 1 file changed, 4 deletions(-)
fs/btrfs/free-space-tree.c +0 -4
index 684f122..fe5e032 100644
@@ -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);
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Christos Gkekas

Remove variables 'start' and 'end', which are set but never used.

Oops.

Quoted 25 lines
---
 fs/btrfs/free-space-tree.c | 4 ----
 1 file changed, 4 deletions(-)
fs/btrfs/free-space-tree.c +0 -4
index 684f122..fe5e032 100644
@@ -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);
Signature · 1 line
2.7.4