Commit 60f841ac authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 81c92f43
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -499,13 +499,11 @@ static int StorVscConnectToVsp(struct hv_device *Device)
	memset(&props, 0, sizeof(struct vmstorage_channel_properties));

	/* Open the channel */
	ret = Device->Driver->VmbusChannelInterface.Open(Device,
			storDriver->RingBufferSize,
			storDriver->RingBufferSize,
	ret = vmbus_open(Device->channel,
			 storDriver->RingBufferSize, storDriver->RingBufferSize,
			 (void *)&props,
			 sizeof(struct vmstorage_channel_properties),
			StorVscOnChannelCallback,
			Device);
			 StorVscOnChannelCallback, Device);

	DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d",
		   props.PathId, props.TargetId, props.MaxTransferBytes);