Skip to content

Commit

Permalink
fs/ext4: 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: Theodore Ts'o <[email protected]>
  • Loading branch information
baihuahua authored and tytso committed Oct 29, 2015
1 parent 1617503 commit be69e1c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2468,9 +2468,6 @@ static int ext4_mknod(struct inode *dir, struct dentry *dentry,
struct inode *inode;
int err, credits, retries = 0;

if (!new_valid_dev(rdev))
return -EINVAL;

err = dquot_initialize(dir);
if (err)
return err;
Expand Down

0 comments on commit be69e1c

Please sign in to comment.