summaryrefslogtreecommitdiff
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-11-10 01:58:55 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-10 02:11:24 +0300
commit3cc5d9a905826e835d4d4dcd0faf922ab7b9eaf9 (patch)
treedf7d3d66f4fec10ed5b13903571861b617bc6746 /fs/reiserfs
parent3348a172befd1b78025e30037bc383514be8d32f (diff)
downloadlinux-3cc5d9a905826e835d4d4dcd0faf922ab7b9eaf9.tar.xz
fs/reiserfs/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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r--fs/reiserfs/namei.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c
index 5f1c9c29eb8c..47f96988fdd4 100644
--- a/fs/reiserfs/namei.c
+++ b/fs/reiserfs/namei.c
@@ -712,9 +712,6 @@ static int reiserfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode
2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) +
REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb));
- if (!new_valid_dev(rdev))
- return -EINVAL;
-
retval = dquot_initialize(dir);
if (retval)
return retval;