diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-09-28 16:15:38 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-09-29 01:19:16 +0200 |
commit | 1bc81eeeba99ed20b570423c311826811e162e6d (patch) | |
tree | a20e1c5195007d5912290363b1bf761ea2ede1c4 /fs/jffs2 | |
parent | mtd: nand: pxa3xx-nand: switch to dmaengine (diff) | |
download | linux-1bc81eeeba99ed20b570423c311826811e162e6d.tar.xz linux-1bc81eeeba99ed20b570423c311826811e162e6d.zip |
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')
-rw-r--r-- | fs/jffs2/dir.c | 3 |
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; |