diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-10-29 21:18:13 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-29 21:18:13 +0300 |
commit | be69e1c19f0efb091f29521715c380842fa4cd7e (patch) | |
tree | c4fd5f84c285ab2eaf9a9331dc516127fe4c4a6e /fs/ext4/namei.c | |
parent | 16175039e6c6527453a23b4949c2a68e82750895 (diff) | |
download | linux-be69e1c19f0efb091f29521715c380842fa4cd7e.tar.xz |
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/namei.c')
-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; |