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-Tag: submit/tizen/20160607.132125~1429^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8415e4b130e0cd919c7c6584bdf27660f3ff295;p=sdk%2Femulator%2Femulator-kernel.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 e48b80c..2c32110 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);