UPSTREAM: 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.

Change-Id: I4ac55ac78f7008c7cd5523cdd231c77d367bd2e6
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>
(cherry picked from commit 539d33455f96532ac88115c35b1769db966003c6)
This commit is contained in:
Colin Ian King
2025-03-19 11:30:10 +00:00
committed by Jaegeuk Kim
parent 8e7a03dcb9
commit 9af46e52d6

View File

@@ -1494,12 +1494,10 @@ repeat:
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);