diff mbox

[12/17] fs/ncpfs: remove unnecessary new_valid_dev check

Message ID 1443450346-5601-1-git-send-email-bywxiaobai@163.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yaowei Bai Sept. 28, 2015, 2:25 p.m. UTC
As new_valid_dev always returns 1, so !new_valid_dev check is not
needed, remove it.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
---
 fs/ncpfs/dir.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 93575e9..2d9891a 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -1165,8 +1165,6 @@  out:
 static int ncp_mknod(struct inode * dir, struct dentry *dentry,
 		     umode_t mode, dev_t rdev)
 {
-	if (!new_valid_dev(rdev))
-		return -EINVAL;
 	if (ncp_is_nfs_extras(NCP_SERVER(dir), NCP_FINFO(dir)->volNumber)) {
 		ncp_dbg(1, "mode = 0%ho\n", mode);
 		return ncp_create_new(dir, dentry, mode, rdev, 0);