linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wang Sheng-Hui <shhuiw@gmail.com>
To: Josef Bacik <jbacik@fusionio.com>,
	chris.mason@fusionio.com, linux-btrfs@vger.kernel.org
Subject: [PATCH] btrfs-progs: remove unused var *prev in extent-cache.c/find_cache_extent
Date: Mon, 24 Jun 2013 14:26:16 +0800	[thread overview]
Message-ID: <51C7E688.2020903@gmail.com> (raw)

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 --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;

-- 
1.7.10.4

                 reply	other threads:[~2013-06-24  6:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C7E688.2020903@gmail.com \
    --to=shhuiw@gmail.com \
    --cc=chris.mason@fusionio.com \
    --cc=jbacik@fusionio.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).