From patchwork Wed Nov 6 23:15:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 3149751 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 817A39F407 for ; Wed, 6 Nov 2013 23:17:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AEF4F202FF for ; Wed, 6 Nov 2013 23:17:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDB7020304 for ; Wed, 6 Nov 2013 23:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215Ab3KFXQd (ORCPT ); Wed, 6 Nov 2013 18:16:33 -0500 Received: from sandeen.net ([63.231.237.45]:56128 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751889Ab3KFXP6 (ORCPT ); Wed, 6 Nov 2013 18:15:58 -0500 Received: by sandeen.net (Postfix, from userid 500) id A834E654E64A; Wed, 6 Nov 2013 17:15:57 -0600 (CST) From: Eric Sandeen To: linux-btrfs@vger.kernel.org Subject: [PATCH 12/16] btrfs-progs: remove more dead code from check_extent_refs Date: Wed, 6 Nov 2013 17:15:51 -0600 Message-Id: <1383779755-18228-13-git-send-email-sandeen@redhat.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1383779755-18228-1-git-send-email-sandeen@redhat.com> References: <1383779755-18228-1-git-send-email-sandeen@redhat.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP e0a04278 removed a bunch of dead code but left one little bit; reinit is always 0, so btrfs_read_block_groups is never called from here. Resolves-Coverity-CID: 1125926 Signed-off-by: Eric Sandeen --- cmds-check.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 668af15..263b4ef 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -5040,7 +5040,6 @@ static int check_extent_refs(struct btrfs_trans_handle *trans, int err = 0; int ret = 0; int fixed = 0; - int reinit = 0; int had_dups = 0; if (repair) { @@ -5066,8 +5065,6 @@ static int check_extent_refs(struct btrfs_trans_handle *trans, cache = next_cache_extent(cache); } prune_corrupt_blocks(trans, root->fs_info); - if (reinit) - btrfs_read_block_groups(root->fs_info->extent_root); reset_cached_block_groups(root->fs_info); }