Commit 646f64b5 authored by Wang Xiaojun's avatar Wang Xiaojun Committed by Jaegeuk Kim
Browse files

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: default avatarWang Xiaojun <wangxiaojun11@huawei.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 98237fcd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1111,7 +1111,6 @@ static int f2fs_rename(struct user_namespace *mnt_userns, struct inode *old_dir,
out_old:
	f2fs_put_page(old_page, 0);
out:
	if (whiteout)
	iput(whiteout);
	return err;
}