summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-10-29 14:18:13 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-10-29 14:18:13 -0400
commitbe69e1c19f0efb091f29521715c380842fa4cd7e (patch)
treec4fd5f84c285ab2eaf9a9331dc516127fe4c4a6e /fs
parent16175039e6c6527453a23b4949c2a68e82750895 (diff)
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')
-rw-r--r--fs/ext4/namei.c3
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;