projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1617503
)
fs/ext4: remove unnecessary new_valid_dev check
author
Yaowei Bai
<bywxiaobai@163.com>
Thu, 29 Oct 2015 18:18:13 +0000
(14:18 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 29 Oct 2015 18:18:13 +0000
(14:18 -0400)
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: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index 52a79d48752ce65444fafd2fd94f8075227d959c..19ce34525a59d3564652728eca3ec08181fef0e2 100644
(file)
--- a/
fs/ext4/namei.c
+++ b/
fs/ext4/namei.c
@@
-2468,9
+2468,6
@@
static int ext4_mknod(struct inode *dir, struct dentry *dentry,
struct inode *inode;
int err, credits, retries = 0;
- if (!new_valid_dev(rdev))
- return -EINVAL;
-
err = dquot_initialize(dir);
if (err)
return err;