From patchwork Mon Apr 9 06:40:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Fengqi X-Patchwork-Id: 10330665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DDB786037F for ; Mon, 9 Apr 2018 06:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D267628A89 for ; Mon, 9 Apr 2018 06:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C771428A86; Mon, 9 Apr 2018 06:41:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C36B28A7C for ; Mon, 9 Apr 2018 06:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbeDIGk6 (ORCPT ); Mon, 9 Apr 2018 02:40:58 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:6500 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751886AbeDIGk5 (ORCPT ); Mon, 9 Apr 2018 02:40:57 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="38704925" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 09 Apr 2018 14:40:56 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 520374D0EFE7 for ; Mon, 9 Apr 2018 14:40:52 +0800 (CST) Received: from fnst.localdomain (10.167.226.155) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 9 Apr 2018 14:40:54 +0800 From: Lu Fengqi To: Subject: [PATCH] btrfs-progs: print-tree: remove dead code from btrfs_print_tree Date: Mon, 9 Apr 2018 14:40:44 +0800 Message-ID: <20180409064044.1699-1-lufq.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.16.3 MIME-Version: 1.0 X-Originating-IP: [10.167.226.155] X-yoursite-MailScanner-ID: 520374D0EFE7.AA219 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lufq.fnst@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }