From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 16:09:48 +0000 (-0700) Subject: Staging: hv: netvsc: call vmbus_receivepacket_raw directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f630068e8ccba24d728f196cb3ddc120ebee38e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: hv: netvsc: call vmbus_receivepacket_raw directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 1c15f9a1a12b..db340135d63f 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -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",