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:
a8415e4
)
fs/hpfs/namei.c: remove unnecessary new_valid_dev() check
author
Yaowei Bai
<
[email protected]
>
Mon, 9 Nov 2015 22:58:44 +0000
(14:58 -0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 9 Nov 2015 23:11:24 +0000
(15:11 -0800)
new_valid_dev() always returns 1, so the !new_valid_dev() check is not
needed. Remove it.
Signed-off-by: Yaowei Bai <
[email protected]
>
Cc: Alexander Viro <
[email protected]
>
Cc: Mikulas Patocka <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/hpfs/namei.c
patch
|
blob
|
history
diff --git
a/fs/hpfs/namei.c
b/fs/hpfs/namei.c
index 9e92c9c2d31954cbd178b5e218e79d5db7c43f8f..ae4d5a1fa4c9b7f75ce188d8ec80e69d0a820892 100644
(file)
--- a/
fs/hpfs/namei.c
+++ b/
fs/hpfs/namei.c
@@
-227,8
+227,6
@@
static int hpfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, de
int err;
if ((err = hpfs_chk_name(name, &len))) return err==-ENOENT ? -EINVAL : err;
if (hpfs_sb(dir->i_sb)->sb_eas < 2) return -EPERM;
- if (!new_valid_dev(rdev))
- return -EINVAL;
hpfs_lock(dir->i_sb);
err = -ENOSPC;
fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh);