diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-04-15 21:37:49 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-05-19 20:55:54 -0400 |
commit | 0cc65dd6918f529ae2c19be95b86dec19549b7ed (patch) | |
tree | 52c1b24513a4efd723027a7e23cb9a0fb57c29f9 /drivers/infiniband/hw | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) |
RDMA/ocrdma: Convert to use simple_open()
This removes an open-coded duplicate of simple_open().
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_stats.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_stats.c b/drivers/infiniband/hw/ocrdma/ocrdma_stats.c index 6c54106f5e64..41a9aec9998d 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_stats.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_stats.c | |||
@@ -510,16 +510,9 @@ exit: | |||
510 | return status; | 510 | return status; |
511 | } | 511 | } |
512 | 512 | ||
513 | static int ocrdma_debugfs_open(struct inode *inode, struct file *file) | ||
514 | { | ||
515 | if (inode->i_private) | ||
516 | file->private_data = inode->i_private; | ||
517 | return 0; | ||
518 | } | ||
519 | |||
520 | static const struct file_operations ocrdma_dbg_ops = { | 513 | static const struct file_operations ocrdma_dbg_ops = { |
521 | .owner = THIS_MODULE, | 514 | .owner = THIS_MODULE, |
522 | .open = ocrdma_debugfs_open, | 515 | .open = simple_open, |
523 | .read = ocrdma_dbgfs_ops_read, | 516 | .read = ocrdma_dbgfs_ops_read, |
524 | }; | 517 | }; |
525 | 518 | ||