Skip to content

Commit

Permalink
Staging: hv: netvsc: call vmbus_receivepacket_raw 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 adaee6b commit 9f63006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9f63006

Please sign in to comment.