From: Yaowei Bai Date: Mon, 9 Nov 2015 22:58:42 +0000 (-0800) Subject: fs/f2fs/namei.c: remove unnecessary new_valid_dev() check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8415e4b130e0cd919c7c6584bdf27660f3ff295;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/f2fs/namei.c: remove unnecessary new_valid_dev() check new_valid_dev() always returns 1, so the !new_valid_dev() check is not needed. Remove it. Signed-off-by: Yaowei Bai Cc: Alexander Viro Cc: Jaegeuk Kim Cc: Changman Lee Cc: Chao Yu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index e48b80c49090..2c32110f9fc0 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -481,9 +481,6 @@ static int f2fs_mknod(struct inode *dir, struct dentry *dentry, struct inode *inode; int err = 0; - if (!new_valid_dev(rdev)) - return -EINVAL; - f2fs_balance_fs(sbi); inode = f2fs_new_inode(dir, mode);