Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer 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:
Greg Kroah-Hartman 2010-10-21 09:32:46 -07:00
parent 713efeb4db
commit ff3f8eece2

View File

@ -912,12 +912,12 @@ static int NetVscOnSend(struct hv_device *Device,
sendMessage.Messages.Version1Messages.SendRNDISPacket.SendBufferSectionSize = 0;
if (Packet->PageBufferCount) {
ret = Device->Driver->VmbusChannelInterface.SendPacketPageBuffer(
Device, Packet->PageBuffers,
Packet->PageBufferCount,
&sendMessage,
sizeof(struct nvsp_message),
(unsigned long)Packet);
ret = vmbus_sendpacket_pagebuffer(Device->channel,
Packet->PageBuffers,
Packet->PageBufferCount,
&sendMessage,
sizeof(struct nvsp_message),
(unsigned long)Packet);
} else {
ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
&sendMessage,