Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614376 > unrolled thread

[PATCH] f2fs: remove the redundant variable definition

Started byKaixu Xia <xiakaixu@huawei.com>
First post2017-04-01 04:50 +0200
Last post2017-04-01 04:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] f2fs: remove the redundant variable definition Kaixu Xia <xiakaixu@huawei.com> - 2017-04-01 04:50 +0200

#1614376 — [PATCH] f2fs: remove the redundant variable definition

FromKaixu Xia <xiakaixu@huawei.com>
Date2017-04-01 04:50 +0200
Subject[PATCH] f2fs: remove the redundant variable definition
Message-ID<trhgZ-4Xz-3@gated-at.bofh.it>
The variable 'i' has been defined before, so here we can
use it directly.

Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web