]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/ext4: remove unnecessary new_valid_dev check
authorYaowei Bai <bywxiaobai@163.com>
Thu, 29 Oct 2015 18:18:13 +0000 (14:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 29 Oct 2015 18:18:13 +0000 (14:18 -0400)
As new_valid_dev always returns 1, so !new_valid_dev check is not
needed, remove it.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c

index 52a79d48752ce65444fafd2fd94f8075227d959c..19ce34525a59d3564652728eca3ec08181fef0e2 100644 (file)
@@ -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;