diff mbox

btrfs-progs: remove unused var *prev in extent-cache.c/find_cache_extent

Message ID 51C7E688.2020903@gmail.com (mailing list archive)
State Under Review, archived
Headers show

Commit Message

Wang Sheng-Hui June 24, 2013, 6:26 a.m. UTC
var *prev is not used in function find_cache_extent. Remove it.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
  extent-cache.c |    3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/extent-cache.c b/extent-cache.c
index 3dd6434..6d86c33 100644
--- a/extent-cache.c
+++ b/extent-cache.c
@@ -117,10 +117,9 @@  int insert_cache_extent(struct cache_tree *tree, u64 start, u64 size)
  struct cache_extent *find_cache_extent(struct cache_tree *tree,
  					   u64 start, u64 size)
  {
-	struct rb_node *prev;
  	struct rb_node *ret;
  	struct cache_extent *entry;
-	ret = __tree_search(&tree->root, start, size, &prev);
+	ret = __tree_search(&tree->root, start, size, NULL);
  	if (!ret)
  		return NULL;