Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 118c9163 authored by Yaowei Bai's avatar Yaowei Bai Committed by Trond Myklebust
Browse files

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: default avatarYaowei Bai <bywxiaobai@163.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 7fc56136
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;