projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc5613
)
fs/nfs: remove unnecessary new_valid_dev check
author
Yaowei Bai
<bywxiaobai@163.com>
Mon, 28 Sep 2015 14:30:32 +0000
(22:30 +0800)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Tue, 3 Nov 2015 17:31:34 +0000
(12:31 -0500)
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>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 3d8e4ffa0a33a1b0449f6dde73d155ead884ee16..ce5a21861074293ca0968b04d1d13e4406ca93bd 100644
(file)
--- 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;