Skip to content

Commit

Permalink
jffs2: remove unnecessary new_valid_dev check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
baihuahua authored and computersforpeace committed Sep 28, 2015
1 parent 8f5ba31 commit 1bc81ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/jffs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bc81ee

Please sign in to comment.