diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-10-29 19:18:13 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-29 19:18:13 +0100 |
commit | be69e1c19f0efb091f29521715c380842fa4cd7e (patch) | |
tree | c4fd5f84c285ab2eaf9a9331dc516127fe4c4a6e /fs/ext4 | |
parent | ext4: fix abs() usage in ext4_mb_check_group_pa (diff) | |
download | linux-be69e1c19f0efb091f29521715c380842fa4cd7e.tar.xz linux-be69e1c19f0efb091f29521715c380842fa4cd7e.zip |
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/namei.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 52a79d48752c..19ce34525a59 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -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; |