Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751288AbdDACn6 (ORCPT ); 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 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 Content-Type: text/plain 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 22 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(-) 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); -- 1.7.10.4