projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98237fc
)
f2fs: remove redundant parameter judgment
author
Wang Xiaojun
<wangxiaojun11@huawei.com>
Mon, 14 Mar 2022 07:15:15 +0000
(15:15 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 17 Mar 2022 16:16:22 +0000
(09:16 -0700)
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>
fs/f2fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index 2b23a76bdae924cd0e8e738c4d65a2f3cb2a2988..906e9e301ac80201b9b397be163390b693915efc 100644
(file)
--- 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;
}