mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
f2fs: file: drop useless initializer in expand_inode_data()
In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used, so we can drop this initializer... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
512dee0c00
commit
39bee2e6ac
@ -1697,7 +1697,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset,
|
||||
.err_gc_skipped = true,
|
||||
.nr_free_secs = 0 };
|
||||
pgoff_t pg_start, pg_end;
|
||||
loff_t new_size = i_size_read(inode);
|
||||
loff_t new_size;
|
||||
loff_t off_end;
|
||||
block_t expanded = 0;
|
||||
int err;
|
||||
|
Loading…
Reference in New Issue
Block a user