btrfs-progs: print-tree: remove dead code from btrfs_print_tree
diff mbox

Message ID 20180409064044.1699-1-lufq.fnst@cn.fujitsu.com
State New
Headers show

Commit Message

Lu Fengqi April 9, 2018, 6:40 a.m. UTC
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 <lufq.fnst@cn.fujitsu.com>
---
 print-tree.c | 2 --
 1 file changed, 2 deletions(-)

Comments

David Sterba May 31, 2018, 12:21 p.m. UTC | #1
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 <lufq.fnst@cn.fujitsu.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

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);
 }