diff options
| author | Abdul Hussain <habdul@visteon.com> | 2015-06-16 10:18:08 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-18 07:40:54 +0300 |
| commit | 92a0616a4f37ce520b8011ac0e3638ffa618ff16 (patch) | |
| tree | 5215ecdbb41c225392201343b8850e79d80e4e60 | |
| parent | 658373e54c462dc48bdfaa393da549fd7cc594b1 (diff) | |
| download | linux-92a0616a4f37ce520b8011ac0e3638ffa618ff16.tar.xz | |
Staging: lusture: Remove an open coded simple_open() function
This patch removes an open coded simple_open() function and replace file
operations references to the function with simple_open() instead
Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/fld/lproc_fld.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/lustre/lustre/fld/lproc_fld.c b/drivers/staging/lustre/lustre/fld/lproc_fld.c index b35ff288dbd5..da822101e005 100644 --- a/drivers/staging/lustre/lustre/fld/lproc_fld.c +++ b/drivers/staging/lustre/lustre/fld/lproc_fld.c @@ -143,13 +143,6 @@ fld_debugfs_cache_flush_write(struct file *file, const char __user *buffer, } static int -fld_debugfs_cache_flush_open(struct inode *inode, struct file *file) -{ - file->private_data = inode->i_private; - return 0; -} - -static int fld_debugfs_cache_flush_release(struct inode *inode, struct file *file) { file->private_data = NULL; @@ -158,7 +151,7 @@ fld_debugfs_cache_flush_release(struct inode *inode, struct file *file) static struct file_operations fld_debugfs_cache_flush_fops = { .owner = THIS_MODULE, - .open = fld_debugfs_cache_flush_open, + .open = simple_open, .write = fld_debugfs_cache_flush_write, .release = fld_debugfs_cache_flush_release, }; |
