linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree
@ 2018-04-09  6:40 Lu Fengqi
  2018-05-31 12:21 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Lu Fengqi @ 2018-04-09  6:40 UTC (permalink / raw)
  To: linux-btrfs

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

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree
  2018-04-09  6:40 [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree Lu Fengqi
@ 2018-05-31 12:21 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2018-05-31 12:21 UTC (permalink / raw)
  To: Lu Fengqi; +Cc: linux-btrfs

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-31 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-09  6:40 [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree Lu Fengqi
2018-05-31 12:21 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).