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 <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
Yaowei Bai 2015-09-28 22:15:38 +08:00 • committed by Brian Norris
commit 1bc81eeeba

View file

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