diff options
author | 2022-03-14 15:15:15 +0800 | |
---|---|---|
committer | 2022-03-17 09:16:22 -0700 | |
commit | 646f64b576f7a80af0dd555e25c79ee8af058681 (patch) | |
tree | c8e5d12ac690f77ce74fc6dfb3de5debd1ec9dd6 | |
parent | f2fs: use spin_lock to avoid hang (diff) | |
download | wireguard-linux-646f64b576f7a80af0dd555e25c79ee8af058681.tar.xz wireguard-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 '')
-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; } |