From: Yaowei Bai Date: Mon, 28 Sep 2015 14:30:32 +0000 (+0800) Subject: fs/nfs: remove unnecessary new_valid_dev check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=118c9163562426face9ff0903f1cbd3e1a959ca9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/nfs: 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 Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3d8e4ffa0a33..ce5a21861074 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1714,9 +1714,6 @@ nfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dfprintk(VFS, "NFS: mknod(%s/%lu), %pd\n", dir->i_sb->s_id, dir->i_ino, dentry); - if (!new_valid_dev(rdev)) - return -EINVAL; - attr.ia_mode = mode; attr.ia_valid = ATTR_MODE;