diff options
author | Wang Xiaojun <wangxiaojun11@huawei.com> | 2022-03-14 15:15:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-03-17 09:16:22 -0700 |
commit | 646f64b576f7a80af0dd555e25c79ee8af058681 (patch) | |
tree | c8e5d12ac690f77ce74fc6dfb3de5debd1ec9dd6 /fs/f2fs/namei.c | |
parent | 98237fcda4a24e67b0a4498c17d5aa4ad4537bc7 (diff) |
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.c | 3 |
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; } |