From: Wang Xiaojun Date: Mon, 14 Mar 2022 07:15:15 +0000 (+0800) Subject: f2fs: remove redundant parameter judgment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=646f64b576f7a80af0dd555e25c79ee8af058681;p=linux.git 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 --- diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 2b23a76bdae92..906e9e301ac80 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; }