mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
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: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5a4df29058
commit
b60d71e2b6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user