Commit be69e1c1 authored by Yaowei Bai's avatar Yaowei Bai Committed by Theodore Ts'o

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: default avatarYaowei Bai <bywxiaobai@163.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 16175039
...@@ -2468,9 +2468,6 @@ static int ext4_mknod(struct inode *dir, struct dentry *dentry, ...@@ -2468,9 +2468,6 @@ static int ext4_mknod(struct inode *dir, struct dentry *dentry,
struct inode *inode; struct inode *inode;
int err, credits, retries = 0; int err, credits, retries = 0;
if (!new_valid_dev(rdev))
return -EINVAL;
err = dquot_initialize(dir); err = dquot_initialize(dir);
if (err) if (err)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment