f2fs: remove redundant parameter judgment
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/namei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/namei.c +1 -2
@@ -1107,8 +1107,7 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry, out_old:f2fs_put_page (old_page,0 ); out: -if (whiteout) -iput (whiteout); +iput (whiteout);return err; }
Signature · 8 lines
2.26.0.106.g9fadedd _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 4 lines · On 2022/3/14 15:15, Wang Xiaojun via Linux-f2fs-devel wrote:
iput()has already judged the incoming parameter, so there is no need to repeat the judgment here.Signed-off-by Wang Xiaojun <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel