提交 f07cda8f 编写于 作者: W Wei Yongjun 提交者: James Bottomley

[SCSI] csiostor: convert to use simple_open()

This removes an open coded simple_open() function and
replaces file operations references to the function
with simple_open() instead.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: NNaresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 b47d70c9
...@@ -60,13 +60,6 @@ static struct scsi_transport_template *csio_fcoe_transport_vport; ...@@ -60,13 +60,6 @@ static struct scsi_transport_template *csio_fcoe_transport_vport;
/* /*
* debugfs support * debugfs support
*/ */
static int
csio_mem_open(struct inode *inode, struct file *file)
{
file->private_data = inode->i_private;
return 0;
}
static ssize_t static ssize_t
csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
{ {
...@@ -110,7 +103,7 @@ csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) ...@@ -110,7 +103,7 @@ csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
static const struct file_operations csio_mem_debugfs_fops = { static const struct file_operations csio_mem_debugfs_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = csio_mem_open, .open = simple_open,
.read = csio_mem_read, .read = csio_mem_read,
.llseek = default_llseek, .llseek = default_llseek,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册