summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorWang Xiaojun <wangxiaojun11@huawei.com>2022-03-14 08:15:15 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2022-03-17 17:16:22 +0100
commit646f64b576f7a80af0dd555e25c79ee8af058681 (patch)
treec8e5d12ac690f77ce74fc6dfb3de5debd1ec9dd6 /fs/f2fs/namei.c
parentf2fs: use spin_lock to avoid hang (diff)
downloadlinux-646f64b576f7a80af0dd555e25c79ee8af058681.tar.xz
linux-646f64b576f7a80af0dd555e25c79ee8af058681.zip
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 <wangxiaojun11@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c3
1 files changed, 1 insertions, 2 deletions
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;
}