Skip to contentSkip to conversation

Remove useless check in find_delalloc_range

PATCH New Diego Calleja 1 participant 1 message Jul 28, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove useless check in find_delalloc_range

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

---
 fs/btrfs/extent_io.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/extent_io.c +1 -2
Index: linux/fs/btrfs/extent_io.c
===================================================================
@@ -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;
 	}