jffs2: 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 <bywxiaobai@163.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Yaowei Bai 2015-09-28 22:15:38 +08:00 committed by Brian Norris
parent 8f5ba31aa5
commit 1bc81eeeba
1 changed files with 0 additions and 3 deletions

View File

@ -621,9 +621,6 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, umode_t mode
uint32_t alloclen; uint32_t alloclen;
int ret; int ret;
if (!new_valid_dev(rdev))
return -EINVAL;
ri = jffs2_alloc_raw_inode(); ri = jffs2_alloc_raw_inode();
if (!ri) if (!ri)
return -ENOMEM; return -ENOMEM;