* [PATCH] Remove useless check in find_delalloc_range
@ 2009-07-28 23:43 Diego Calleja
0 siblings, 0 replies; only message in thread
From: Diego Calleja @ 2009-07-28 23:43 UTC (permalink / raw)
To: Chris Mason; +Cc: linux-btrfs
'found' is always 0 at that point, so the test is redundant.
Signed-off-by: Diego Calleja <diegocg@gmail.com>
---
fs/btrfs/extent_io.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: linux/fs/btrfs/extent_io.c
===================================================================
--- linux.orig/fs/btrfs/extent_io.c 2009-07-29 01:16:22.010765781 +0200
+++ linux/fs/btrfs/extent_io.c 2009-07-29 01:17:31.874765725 +0200
@@ -1092,8 +1092,7 @@ static noinline u64 find_delalloc_range(
*/
node = tree_search(tree, cur_start);
if (!node) {
- if (!found)
- *end = (u64)-1;
+ *end = (u64)-1;
goto out;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-28 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 23:43 [PATCH] Remove useless check in find_delalloc_range Diego Calleja
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox