projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f5ba31
)
jffs2: remove unnecessary new_valid_dev check
author
Yaowei Bai
<bywxiaobai@163.com>
Mon, 28 Sep 2015 14:15:38 +0000
(22:15 +0800)
committer
Brian Norris
<computersforpeace@gmail.com>
Mon, 28 Sep 2015 23:19:16 +0000
(16:19 -0700)
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>
fs/jffs2/dir.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/dir.c
b/fs/jffs2/dir.c
index 81180022923fbd8ccd499d0b74af05b59695c302..d211b8e18566719c873838268217b143966e5965 100644
(file)
--- 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;