diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-11-09 23:58:39 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-10 00:11:24 +0100 |
commit | d7df00072e64f972e0f7eb4fea78eed2da9c0e59 (patch) | |
tree | 6bc4bd9ee526a2ccdc7ce2d8e15c4ec1b06beaf1 /fs/ext2 | |
parent | fs/exofs/namei.c: remove unnecessary new_valid_dev() check (diff) | |
download | linux-d7df00072e64f972e0f7eb4fea78eed2da9c0e59.tar.xz linux-d7df00072e64f972e0f7eb4fea78eed2da9c0e59.zip |
fs/ext2/namei.c: remove unnecessary new_valid_dev() check
new_valid_dev() always returns 1, so the !new_valid_dev() check is not
needed. Remove it.
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Jan Kara <jack@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/namei.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index b4841e3066a5..3267a80dbbe2 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c @@ -143,9 +143,6 @@ static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, struct inode * inode; int err; - if (!new_valid_dev(rdev)) - return -EINVAL; - err = dquot_initialize(dir); if (err) return err; |