Skip to content

Commit 3f8ac7d

Browse files
ColinIanKingJaegeuk Kim
authored andcommitted
f2fs: remove redundant assignment to variable err
The assignment to variable err is redundant since the code jumps to label next and err is then re-assigned a new value on the call to sanity_check_node_chain. Remove the assignment. Cleans up clang scan build warning: fs/f2fs/recovery.c:464:6: warning: Value stored to 'err' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 9ac00e7 commit 3f8ac7d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/f2fs/recovery.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,8 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head,
460460
quota_inode);
461461
if (IS_ERR(entry)) {
462462
err = PTR_ERR(entry);
463-
if (err == -ENOENT) {
464-
err = 0;
463+
if (err == -ENOENT)
465464
goto next;
466-
}
467465
f2fs_put_page(page, 1);
468466
break;
469467
}

0 commit comments

Comments
 (0)