From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 16:15:14 +0000 (-0700) Subject: Staging: hv: storvsc: call vmbus_recvpacket directly X-Git-Tag: upstream/snapshot3+hdmi~12602^2~3^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50ea95dfa2c3d4e99223867dfa2bfc8b17a890c1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: hv: storvsc: call vmbus_recvpacket 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/storvsc.c b/drivers/staging/hv/storvsc.c index 6821a8f..a270396 100644 --- a/drivers/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -28,6 +28,7 @@ #include "storvsc_api.h" #include "vmbus_packet_format.h" #include "vstorage.h" +#include "channel.h" struct storvsc_request_extension { @@ -451,10 +452,9 @@ static void StorVscOnChannelCallback(void *context) } do { - ret = device->Driver->VmbusChannelInterface.RecvPacket(device, - packet, - ALIGN_UP(sizeof(struct vstor_packet), 8), - &bytesRecvd, &requestId); + ret = vmbus_recvpacket(device->channel, packet, + ALIGN_UP(sizeof(struct vstor_packet), 8), + &bytesRecvd, &requestId); if (ret == 0 && bytesRecvd > 0) { DPRINT_DBG(STORVSC, "receive %d bytes - tid %llx", bytesRecvd, requestId);