Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer directly
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:32:46 +0000 (09:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:32:46 +0000 (09:32 -0700)
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>
drivers/staging/hv/netvsc.c

index db340135d63f70dfda4ff543d60e4237b65cbde0..71a8dbaaefa62e9522dbbd923fbbd8e5a0655598 100644 (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,