1
0
Fork 0

fs/ext4: 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: Theodore Ts'o <tytso@mit.edu>
steinar/wifi_calib_4_9_kernel
Yaowei Bai 2015-10-29 14:18:13 -04:00 committed by Theodore Ts'o
parent 16175039e6
commit be69e1c19f
1 changed files with 0 additions and 3 deletions

View File

@ -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;