lkml.org 
[lkml]   [2017]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] btrfs: Clean up unused variables in free-space-tree.c
On Thu, Oct 12, 2017 at 10:40:42PM +0100, Christos Gkekas wrote:
> Remove variables 'start' and 'end', which are set but never used.

Oops.

Reviewed-by: Omar Sandoval <osandov@fb.com>

> Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
> ---
> fs/btrfs/free-space-tree.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c
> index 684f122..fe5e032 100644
> --- a/fs/btrfs/free-space-tree.c
> +++ b/fs/btrfs/free-space-tree.c
> @@ -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);
> --
> 2.7.4
>

\
 
 \ /
  Last update: 2017-10-12 23:44    [W:0.056 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site