mirror of https://gitee.com/openkylin/linux.git
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:
parent
8f5ba31aa5
commit
1bc81eeeba
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue