mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* proc: remove dummy vmcore_open()
@ 2008-09-01 16:43 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2008-09-01 16:43 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

Empty ->open is equvivalent to always succeeding ->open.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 fs/proc/vmcore.c |    6 ------
 1 file changed, 6 deletions(-)

--- 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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-01 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-01 16:43 proc: remove dummy vmcore_open() Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®