]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ubifs/dir.c
fs/ubifs/: remove unnecessary new_valid_dev() checks
[karo-tx-linux.git] / fs / ubifs / dir.c
index 5c27c66c224af38618ec4f92b453bd8e65d24608..1dd9267c165bade5e2e0d7de25ff95d4cb99586e 100644 (file)
@@ -787,9 +787,6 @@ static int ubifs_mknod(struct inode *dir, struct dentry *dentry,
 
        dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino);
 
-       if (!new_valid_dev(rdev))
-               return -EINVAL;
-
        if (S_ISBLK(mode) || S_ISCHR(mode)) {
                dev = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS);
                if (!dev)