diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-21 18:15:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-21 18:15:14 +0200 |
commit | 50ea95dfa2c3d4e99223867dfa2bfc8b17a890c1 (patch) | |
tree | ac3e889a8517faa6c858ab173ecffd362bd293c1 | |
parent | Staging: hv: remove RecvPacketRaw from struct vmbus_channel_interface (diff) | |
download | linux-50ea95dfa2c3d4e99223867dfa2bfc8b17a890c1.tar.xz linux-50ea95dfa2c3d4e99223867dfa2bfc8b17a890c1.zip |
Staging: hv: storvsc: call vmbus_recvpacket directly
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>
-rw-r--r-- | drivers/staging/hv/storvsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index 6821a8ff80a4..a270396ee520 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); |