mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-14 05:47:33 +07:00
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>
This commit is contained in:
parent
d6d211db37
commit
0cc65dd691
@ -510,16 +510,9 @@ static ssize_t ocrdma_dbgfs_ops_read(struct file *filp, char __user *buffer,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ocrdma_debugfs_open(struct inode *inode, struct file *file)
|
|
||||||
{
|
|
||||||
if (inode->i_private)
|
|
||||||
file->private_data = inode->i_private;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct file_operations ocrdma_dbg_ops = {
|
static const struct file_operations ocrdma_dbg_ops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = ocrdma_debugfs_open,
|
.open = simple_open,
|
||||||
.read = ocrdma_dbgfs_ops_read,
|
.read = ocrdma_dbgfs_ops_read,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user