Skip to content

Commit 646f64b

Browse files
Wang XiaojunJaegeuk Kim
authored andcommitted
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>
1 parent 98237fc commit 646f64b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/f2fs/namei.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,7 @@ static int f2fs_rename(struct user_namespace *mnt_userns, struct inode *old_dir,
11111111
out_old:
11121112
f2fs_put_page(old_page, 0);
11131113
out:
1114-
if (whiteout)
1115-
iput(whiteout);
1114+
iput(whiteout);
11161115
return err;
11171116
}
11181117

0 commit comments

Comments
 (0)