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(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 5f213f05556d..b7c9b602bd72 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -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; } -- 2.26.0.106.g9fadedd _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
