From be69e1c19f0efb091f29521715c380842fa4cd7e Mon Sep 17 00:00:00 2001 From: Yaowei Bai Date: Thu, 29 Oct 2015 14:18:13 -0400 Subject: [PATCH] fs/ext4: remove unnecessary new_valid_dev check As new_valid_dev always returns 1, so !new_valid_dev check is not needed, remove it. Signed-off-by: Yaowei Bai Signed-off-by: Theodore Ts'o --- fs/ext4/namei.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 52a79d48752c..19ce34525a59 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2468,9 +2468,6 @@ static int ext4_mknod(struct inode *dir, struct dentry *dentry, struct inode *inode; int err, credits, retries = 0; - if (!new_valid_dev(rdev)) - return -EINVAL; - err = dquot_initialize(dir); if (err) return err; -- GitLab