Re: [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree

2018-05-31 Thread David Sterba
On Mon, Apr 09, 2018 at 02:40:44PM +0800, Lu Fengqi wrote:
> Since the out label has been deleted, this free_extent_buffer will never
> be executed.
> 
> Fixes: f37ae8d275c2 ("btrfs-progs: print-tree: Enhance warning on tree block 
> level mismatch and error handling")
> Signed-off-by: Lu Fengqi 

Applied, thanks.
--
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


[PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree

2018-04-09 Thread Lu Fengqi
Since the out label has been deleted, this free_extent_buffer will never
be executed.

Fixes: f37ae8d275c2 ("btrfs-progs: print-tree: Enhance warning on tree block 
level mismatch and error handling")
Signed-off-by: Lu Fengqi 
---
 print-tree.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/print-tree.c b/print-tree.c
index a2f6bfc027c9..44e9b40a9874 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -1416,6 +1416,4 @@ void btrfs_print_tree(struct btrfs_root *root, struct 
extent_buffer *eb, int fol
}
 
return;
-
-   free_extent_buffer(next);
 }
-- 
2.16.3



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