mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: rework the code logic
@ 2012-07-05  7:26 zwu.kernel
  2012-07-05  7:30 ` Zhi Yong Wu
  0 siblings, 1 reply; 2+ messages in thread
From: zwu.kernel @ 2012-07-05  7:26 UTC (permalink / raw)
  To: linux-btrfs; +Cc: linux-kernel, Zhi Yong Wu

From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 extent-cache.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extent-cache.c b/extent-cache.c
index 3dd6434..a5084ee 100644
--- a/extent-cache.c
+++ b/extent-cache.c
@@ -136,10 +136,10 @@ struct cache_extent *find_first_cache_extent(struct cache_tree *tree,
 	struct cache_extent *entry;
 
 	ret = __tree_search(&tree->root, start, 1, &prev);
-	if (!ret)
+	if (!ret) {
 		ret = prev;
-	if (!ret)
 		return NULL;
+        }
 	entry = rb_entry(ret, struct cache_extent, rb_node);
 	return entry;
 }
-- 
1.7.6


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-05  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05  7:26 [PATCH] btrfs-progs: rework the code logic zwu.kernel
2012-07-05  7:30 ` Zhi Yong Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®