]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/reiserfs/namei.c: remove unnecessary new_valid_dev() check
authorYaowei Bai <bywxiaobai@163.com>
Wed, 21 Oct 2015 22:13:28 +0000 (09:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 5 Nov 2015 05:11:49 +0000 (16:11 +1100)
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>
fs/reiserfs/namei.c

index 5f1c9c29eb8c9196053f3e626e9084b1f93aae18..47f96988fdd478dbc6ce325232d38754258864cc 100644 (file)
@@ -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;