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

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

Staging: hv: storvsc: call vmbus_sendpacket 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 5a4df290
Loading
Loading
Loading
Loading
+30 −36
Original line number Diff line number Diff line
@@ -213,8 +213,7 @@ static int StorVscChannelInit(struct hv_device *Device)

	DPRINT_INFO(STORVSC, "BEGIN_INITIALIZATION_OPERATION...");

	ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
	ret = vmbus_sendpacket(Device->channel, vstorPacket,
			       sizeof(struct vstor_packet),
			       (unsigned long)request,
			       VmbusPacketTypeDataInBand,
@@ -245,8 +244,7 @@ static int StorVscChannelInit(struct hv_device *Device)
	vstorPacket->Version.MajorMinor = VMSTOR_PROTOCOL_VERSION_CURRENT;
	FILL_VMSTOR_REVISION(vstorPacket->Version.Revision);

	ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
	ret = vmbus_sendpacket(Device->channel, vstorPacket,
			       sizeof(struct vstor_packet),
			       (unsigned long)request,
			       VmbusPacketTypeDataInBand,
@@ -277,8 +275,7 @@ static int StorVscChannelInit(struct hv_device *Device)
	vstorPacket->StorageChannelProperties.PortNumber =
					storDevice->PortNumber;

	ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
	ret = vmbus_sendpacket(Device->channel, vstorPacket,
			       sizeof(struct vstor_packet),
			       (unsigned long)request,
			       VmbusPacketTypeDataInBand,
@@ -314,8 +311,7 @@ static int StorVscChannelInit(struct hv_device *Device)
	vstorPacket->Operation = VStorOperationEndInitialization;
	vstorPacket->Flags = REQUEST_COMPLETION_FLAG;

	ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
	ret = vmbus_sendpacket(Device->channel, vstorPacket,
			       sizeof(struct vstor_packet),
			       (unsigned long)request,
			       VmbusPacketTypeDataInBand,
@@ -638,8 +634,7 @@ int StorVscOnHostReset(struct hv_device *Device)
	vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
	vstorPacket->VmSrb.PathId = storDevice->PathId;

	ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
	ret = vmbus_sendpacket(Device->channel, vstorPacket,
			       sizeof(struct vstor_packet),
			       (unsigned long)&storDevice->ResetRequest,
			       VmbusPacketTypeDataInBand,
@@ -741,8 +736,7 @@ static int StorVscOnIORequest(struct hv_device *Device,
				sizeof(struct vstor_packet),
				(unsigned long)requestExtension);
	} else {
		ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
				vstorPacket,
		ret = vmbus_sendpacket(Device->channel, vstorPacket,
				       sizeof(struct vstor_packet),
				       (unsigned long)requestExtension,
				       VmbusPacketTypeDataInBand,