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:
3cc5d9a
)
fs/stat.c: remove unnecessary new_valid_dev() check
author
Yaowei Bai
<
[email protected]
>
Mon, 9 Nov 2015 22:58:58 +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]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/stat.c
patch
|
blob
|
history
diff --git
a/fs/stat.c
b/fs/stat.c
index cccc1aab9a8b75231f056a18b0b9fc3ecaaf1561..d4a61d8dc021e6e70a3a1317ef793753de8165ed 100644
(file)
--- a/
fs/stat.c
+++ b/
fs/stat.c
@@
-367,8
+367,6
@@
static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)
INIT_STRUCT_STAT64_PADDING(tmp);
#ifdef CONFIG_MIPS
/* mips has weird padding, so we don't get 64 bits there */
- if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev))
- return -EOVERFLOW;
tmp.st_dev = new_encode_dev(stat->dev);
tmp.st_rdev = new_encode_dev(stat->rdev);
#else