Skip to contentSkip to conversation

proc: remove dummy vmcore_open()

PATCH Alexey Dobriyan 1 participant 1 message Sep 1, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---

 fs/proc/vmcore.c |    6 ------
 1 file changed, 6 deletions(-)
fs/proc/vmcore.c +0 -6
@@ -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)