Skip to content

Commit

Permalink
proc: remove dummy vmcore_open()
Browse files Browse the repository at this point in the history
Empty ->open is equivalent to always succeeding ->open.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
  • Loading branch information
Alexey Dobriyan committed Oct 10, 2008
1 parent e167523 commit a04f4de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fs/proc/vmcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a04f4de

Please sign in to comment.