From patchwork Thu Jun 12 02:25:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gui Hecheng X-Patchwork-Id: 4339081 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 569F79F357 for ; Thu, 12 Jun 2014 02:30:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9526F2034B for ; Thu, 12 Jun 2014 02:30:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B970A2034F for ; Thu, 12 Jun 2014 02:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755283AbaFLCaZ (ORCPT ); Wed, 11 Jun 2014 22:30:25 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:16859 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1755197AbaFLCaY (ORCPT ); Wed, 11 Jun 2014 22:30:24 -0400 X-IronPort-AV: E=Sophos;i="5.00,692,1396972800"; d="scan'208";a="31789747" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 12 Jun 2014 10:27:33 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id s5C2UAFW024488 for ; Thu, 12 Jun 2014 10:30:10 +0800 Received: from localhost.localdomain (10.167.226.111) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 12 Jun 2014 10:30:21 +0800 From: Gui Hecheng To: CC: Gui Hecheng Subject: [PATCH 3/3] btrfs-progs: cleanup unused assignment for chunk-recover Date: Thu, 12 Jun 2014 10:25:01 +0800 Message-ID: <1402539901-22779-3-git-send-email-guihc.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1402539901-22779-1-git-send-email-guihc.fnst@cn.fujitsu.com> References: <1402539901-22779-1-git-send-email-guihc.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.111] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.5 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 The 'num_unordered' will be recounted after 'goto out', just remove it. Signed-off-by: Gui Hecheng --- chunk-recover.c | 1 - 1 file changed, 1 deletion(-) diff --git a/chunk-recover.c b/chunk-recover.c index d5a688e..8bc5bc3 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1905,7 +1905,6 @@ next_csum: fprintf(stderr, "Fetch csum failed\n"); goto fail_out; } else if (ret == 1) { - num_unordered = count_devext_records(&unordered); if (!(*flags & EQUAL_STRIPE)) *flags |= EQUAL_STRIPE; goto out;