mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
f2fs: remove redundant assignment to variable err
The variable err is being assigned a value zero and then the following goto page_hit reassigns err a new value. The zero assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> [Jaegeuk Kim: clean up braces and if condition, suggested by Dan Carpenter] Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0af2f6be1b
commit
539d33455f
|
|
@ -1494,12 +1494,10 @@ static struct folio *__get_node_folio(struct f2fs_sb_info *sbi, pgoff_t nid,
|
|||
return folio;
|
||||
|
||||
err = read_node_page(&folio->page, 0);
|
||||
if (err < 0) {
|
||||
if (err < 0)
|
||||
goto out_put_err;
|
||||
} else if (err == LOCKED_PAGE) {
|
||||
err = 0;
|
||||
if (err == LOCKED_PAGE)
|
||||
goto page_hit;
|
||||
}
|
||||
|
||||
if (parent)
|
||||
f2fs_ra_node_pages(parent, start + 1, MAX_RA_NODE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user