Skip to content

Commit

Permalink
Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer directly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent 713efeb commit ff3f8ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff3f8ee

Please sign in to comment.