From: Luis Henriques Date: Tue, 23 Aug 2016 22:23:23 +0000 (+0100) Subject: btrfs: Fix warning "variable ‘gen’ set but not used" X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6c490fa26c71e1aeead935fad561b4d62629f3dd;p=deliverable%2Flinux.git btrfs: Fix warning "variable ‘gen’ set but not used" Variable 'gen' in reada_for_search() is not used since commit 58dc4ce43251 ("btrfs: remove unused parameter from readahead_tree_block"). This patch simply removes this variable. Signed-off-by: Luis Henriques Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index d1c56c94dd5a..dcd39cca7e43 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2268,7 +2268,6 @@ static void reada_for_search(struct btrfs_root *root, u64 search; u64 target; u64 nread = 0; - u64 gen; struct extent_buffer *eb; u32 nr; u32 blocksize; @@ -2313,7 +2312,6 @@ static void reada_for_search(struct btrfs_root *root, search = btrfs_node_blockptr(node, nr); if ((search <= target && target - search <= 65536) || (search > target && search - target <= 65536)) { - gen = btrfs_node_ptr_generation(node, nr); readahead_tree_block(root, search); nread += blocksize; }