From 646f64b576f7a80af0dd555e25c79ee8af058681 Mon Sep 17 00:00:00 2001 From: Wang Xiaojun Date: Mon, 14 Mar 2022 15:15:15 +0800 Subject: f2fs: remove redundant parameter judgment iput() has already judged the incoming parameter, so there is no need to repeat the judgment here. Signed-off-by: Wang Xiaojun Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs/f2fs/namei.c') diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 2b23a76bdae9..906e9e301ac8 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -1111,8 +1111,7 @@ out_dir: out_old: f2fs_put_page(old_page, 0); out: - if (whiteout) - iput(whiteout); + iput(whiteout); return err; } -- cgit v1.2.3