Staging: hv: netvsc: call vmbus_receivepacket_raw directly
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:09:48 +0000 (09:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:09:48 +0000 (09:09 -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 1c15f9a..db34013 100644 (file)
@@ -1261,9 +1261,8 @@ static void NetVscOnChannelCallback(void *Context)
        }
 
        do {
-               ret = device->Driver->VmbusChannelInterface.RecvPacketRaw(
-                                               device, buffer, bufferlen,
-                                               &bytesRecvd, &requestId);
+               ret = vmbus_recvpacket_raw(device->channel, buffer, bufferlen,
+                                          &bytesRecvd, &requestId);
                if (ret == 0) {
                        if (bytesRecvd > 0) {
                                DPRINT_DBG(NETVSC, "receive %d bytes, tid %llx",