'found' is always 0 at that point, so the test is redundant.

Signed-off-by: Diego Calleja <dieg...@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;
        }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to