Commit 087d3d8b authored by Kinglong Mee's avatar Kinglong Mee Committed by Jaegeuk Kim

f2fs: drop duplicate new_size assign in f2fs_zero_range

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 8a6aa325
...@@ -1197,8 +1197,6 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, ...@@ -1197,8 +1197,6 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len,
if (ret) if (ret)
return ret; return ret;
if (offset + len > new_size)
new_size = offset + len;
new_size = max_t(loff_t, new_size, offset + len); new_size = max_t(loff_t, new_size, offset + len);
} else { } else {
if (off_start) { if (off_start) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment