Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc65dd6 authored by Duan Jiong's avatar Duan Jiong Committed by Roland Dreier
Browse files

RDMA/ocrdma: Convert to use simple_open()



This removes an open-coded duplicate of simple_open().

Signed-off-by: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent d6d211db
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -510,16 +510,9 @@ exit:
	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 = {
	.owner = THIS_MODULE,
	.open = ocrdma_debugfs_open,
	.open = simple_open,
	.read = ocrdma_dbgfs_ops_read,
};