mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
Staging: hv: storvsc: call vmbus_open directly
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
81c92f43e7
commit
60f841ac36
1 changed files with 5 additions and 7 deletions
|
@ -499,13 +499,11 @@ static int StorVscConnectToVsp(struct hv_device *Device)
|
||||||
memset(&props, 0, sizeof(struct vmstorage_channel_properties));
|
memset(&props, 0, sizeof(struct vmstorage_channel_properties));
|
||||||
|
|
||||||
/* Open the channel */
|
/* Open the channel */
|
||||||
ret = Device->Driver->VmbusChannelInterface.Open(Device,
|
ret = vmbus_open(Device->channel,
|
||||||
storDriver->RingBufferSize,
|
storDriver->RingBufferSize, storDriver->RingBufferSize,
|
||||||
storDriver->RingBufferSize,
|
(void *)&props,
|
||||||
(void *)&props,
|
sizeof(struct vmstorage_channel_properties),
|
||||||
sizeof(struct vmstorage_channel_properties),
|
StorVscOnChannelCallback, Device);
|
||||||
StorVscOnChannelCallback,
|
|
||||||
Device);
|
|
||||||
|
|
||||||
DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d",
|
DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d",
|
||||||
props.PathId, props.TargetId, props.MaxTransferBytes);
|
props.PathId, props.TargetId, props.MaxTransferBytes);
|
||||||
|
|
Loading…
Add table
Reference in a new issue