summaryrefslogtreecommitdiff
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorKaixu Xia <xiakaixu@huawei.com>2017-04-02 02:39:48 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-05 11:05:07 -0700
commitfc2e2875d54c3571fe7c9dbed83814bd26e8a33a (patch)
treeb47111437c234722c903b71249ca59ebf4cecce9 /fs/f2fs/checkpoint.c
parent687de7f1010cb819d04b768556960d3689abe02b (diff)
f2fs: remove the redundant variable definition
The variable 'i' has been defined before, so here we can use it directly. Signed-off-by: Kaixu Xia <xiakaixu@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 9aba0bb340a0..9db92990f193 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -1163,7 +1163,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);