summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/dir.c
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-09-28 22:15:38 +0800
committerBrian Norris <computersforpeace@gmail.com>2015-09-28 16:19:16 -0700
commit1bc81eeeba99ed20b570423c311826811e162e6d (patch)
treea20e1c5195007d5912290363b1bf761ea2ede1c4 /fs/jffs2/dir.c
parent8f5ba31aa565c4efe11cca2b37acbb35c4f143f2 (diff)
downloadlinux-1bc81eeeba99ed20b570423c311826811e162e6d.tar.bz2
jffs2: 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 <bywxiaobai@163.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'fs/jffs2/dir.c')
-rw-r--r--fs/jffs2/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c
index 81180022923f..d211b8e18566 100644
--- a/fs/jffs2/dir.c
+++ b/fs/jffs2/dir.c
@@ -621,9 +621,6 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, umode_t mode
uint32_t alloclen;
int ret;
- if (!new_valid_dev(rdev))
- return -EINVAL;
-
ri = jffs2_alloc_raw_inode();
if (!ri)
return -ENOMEM;