From patchwork Sat Apr 1 18:39:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaixu Xia X-Patchwork-Id: 96534 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp993356qgd; Fri, 31 Mar 2017 19:45:39 -0700 (PDT) X-Received: by 10.99.225.5 with SMTP id z5mr5811183pgh.145.1491014739903; Fri, 31 Mar 2017 19:45:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si6806162pgc.255.2017.03.31.19.45.39; Fri, 31 Mar 2017 19:45:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751291AbdDACn6 (ORCPT + 24 others); Fri, 31 Mar 2017 22:43:58 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4950 "EHLO dggrg03-dlp.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750947AbdDACn5 (ORCPT ); Fri, 31 Mar 2017 22:43:57 -0400 Received: from 172.30.72.53 (EHLO DGGEML404-HUB.china.huawei.com) ([172.30.72.53]) by dggrg03-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id AKZ58477; Sat, 01 Apr 2017 10:43:49 +0800 (CST) Received: from linux-2rtt.site (10.108.67.166) by DGGEML404-HUB.china.huawei.com (10.3.17.39) with Microsoft SMTP Server id 14.3.301.0; Sat, 1 Apr 2017 10:43:42 +0800 From: Kaixu Xia To: , CC: , , , Subject: [PATCH] f2fs: remove the redundant variable definition Date: Sun, 2 Apr 2017 02:39:48 +0800 Message-ID: <1491071988-16492-1-git-send-email-xiakaixu@huawei.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Originating-IP: [10.108.67.166] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.58DF13E6.001C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 35e04a14d1dd3b56cc1b4c572e802a4b Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable 'i' has been defined before, so here we can use it directly. Signed-off-by: Kaixu Xia --- fs/f2fs/checkpoint.c | 1 - 1 file changed, 1 deletion(-) -- 1.7.10.4 diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 0339daf..2e42684 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1143,7 +1143,6 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) /* write nat bits */ if (enabled_nat_bits(sbi, cpc)) { __u64 cp_ver = cur_cp_version(ckpt); - unsigned int i; block_t blk; cp_ver |= ((__u64)crc32 << 32);