projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e167523
)
proc: remove dummy vmcore_open()
author
Alexey Dobriyan
<adobriyan@gmail.com>
Thu, 2 Oct 2008 20:26:49 +0000
(
00:26
+0400)
committer
Alexey Dobriyan
<adobriyan@gmail.com>
Fri, 10 Oct 2008 00:18:55 +0000
(
04:18
+0400)
Empty ->open is equivalent to always succeeding ->open.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/proc/vmcore.c
patch
|
blob
|
history
diff --git
a/fs/proc/vmcore.c
b/fs/proc/vmcore.c
index 9ac0f5e064e09e99f58b428e933b2903a893a5b9..841368b87a29dbb89c68c4539b6203a7e0501905 100644
(file)
--- a/
fs/proc/vmcore.c
+++ b/
fs/proc/vmcore.c
@@
-165,14
+165,8
@@
static ssize_t read_vmcore(struct file *file, char __user *buffer,
return acc;
}
-static int open_vmcore(struct inode *inode, struct file *filp)
-{
- return 0;
-}
-
const struct file_operations proc_vmcore_operations = {
.read = read_vmcore,
- .open = open_vmcore,
};
static struct vmcore* __init get_new_element(void)