diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-12-03 01:22:39 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-01-28 21:55:08 -0500 |
commit | f07cda8fa9bcf83b5317a0b478d7b6ea4f59facf (patch) | |
tree | 6cef230f81da0a8d4400de23ad8345b2ea1efc67 /drivers/scsi/csiostor | |
parent | b47d70c9531f082cad01e3dd0aa5f1b9827a04b7 (diff) |
[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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Naresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/csiostor')
-rw-r--r-- | drivers/scsi/csiostor/csio_init.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index b42cbbd3d92d..d81b03c5165b 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c | |||
@@ -60,13 +60,6 @@ static struct scsi_transport_template *csio_fcoe_transport_vport; | |||
60 | /* | 60 | /* |
61 | * debugfs support | 61 | * debugfs support |
62 | */ | 62 | */ |
63 | static int | ||
64 | csio_mem_open(struct inode *inode, struct file *file) | ||
65 | { | ||
66 | file->private_data = inode->i_private; | ||
67 | return 0; | ||
68 | } | ||
69 | |||
70 | static ssize_t | 63 | static ssize_t |
71 | csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | 64 | csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
72 | { | 65 | { |
@@ -110,7 +103,7 @@ csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
110 | 103 | ||
111 | static const struct file_operations csio_mem_debugfs_fops = { | 104 | static const struct file_operations csio_mem_debugfs_fops = { |
112 | .owner = THIS_MODULE, | 105 | .owner = THIS_MODULE, |
113 | .open = csio_mem_open, | 106 | .open = simple_open, |
114 | .read = csio_mem_read, | 107 | .read = csio_mem_read, |
115 | .llseek = default_llseek, | 108 | .llseek = default_llseek, |
116 | }; | 109 | }; |