提交 a04f4de6 编写于 作者: A Alexey Dobriyan

proc: remove dummy vmcore_open()

Empty ->open is equivalent to always succeeding ->open.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
上级 e1675231
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册