From: Christophe JAILLET Date: Mon, 17 Apr 2023 20:51:46 +0000 (+0200) Subject: f2fs: remove some dead code X-Git-Tag: v6.6.7~2416^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08c3eab525efb31406494282552a23f33a8a921a;p=platform%2Fkernel%2Flinux-starfive.git f2fs: remove some dead code 'ret' is known to be 0 at the point. So these lines of code should just be removed. Signed-off-by: Christophe JAILLET Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 834c6f0..4a105a0 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2066,7 +2066,6 @@ int f2fs_wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, struct list_head *head = &sbi->fsync_node_list; unsigned long flags; unsigned int cur_seq_id = 0; - int ret2, ret = 0; while (seq_id && cur_seq_id < seq_id) { spin_lock_irqsave(&sbi->fsync_node_lock, flags); @@ -2087,16 +2086,9 @@ int f2fs_wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, f2fs_wait_on_page_writeback(page, NODE, true, false); put_page(page); - - if (ret) - break; } - ret2 = filemap_check_errors(NODE_MAPPING(sbi)); - if (!ret) - ret = ret2; - - return ret; + return filemap_check_errors(NODE_MAPPING(sbi)); } static int f2fs_write_node_pages(struct address_space *mapping,