Staging: hv: netvsc: call vmbus_teardown_gpadl 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>
This commit is contained in:
parent
18726d7a60
commit
314bf1d12a
1 changed files with 5 additions and 5 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "netvsc.h"
|
#include "netvsc.h"
|
||||||
#include "rndis_filter.h"
|
#include "rndis_filter.h"
|
||||||
|
#include "channel.h"
|
||||||
|
|
||||||
|
|
||||||
/* Globals */
|
/* Globals */
|
||||||
|
@ -468,8 +469,7 @@ static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice)
|
||||||
if (NetDevice->ReceiveBufferGpadlHandle) {
|
if (NetDevice->ReceiveBufferGpadlHandle) {
|
||||||
DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL...");
|
DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL...");
|
||||||
|
|
||||||
ret = NetDevice->Device->Driver->VmbusChannelInterface.TeardownGpadl(
|
ret = vmbus_teardown_gpadl(NetDevice->Device->context,
|
||||||
NetDevice->Device,
|
|
||||||
NetDevice->ReceiveBufferGpadlHandle);
|
NetDevice->ReceiveBufferGpadlHandle);
|
||||||
|
|
||||||
/* If we failed here, we might as well return and have a leak rather than continue and a bugchk */
|
/* If we failed here, we might as well return and have a leak rather than continue and a bugchk */
|
||||||
|
@ -540,8 +540,8 @@ static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice)
|
||||||
/* Teardown the gpadl on the vsp end */
|
/* Teardown the gpadl on the vsp end */
|
||||||
if (NetDevice->SendBufferGpadlHandle) {
|
if (NetDevice->SendBufferGpadlHandle) {
|
||||||
DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL...");
|
DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL...");
|
||||||
|
ret = vmbus_teardown_gpadl(NetDevice->Device->context,
|
||||||
ret = NetDevice->Device->Driver->VmbusChannelInterface.TeardownGpadl(NetDevice->Device, NetDevice->SendBufferGpadlHandle);
|
NetDevice->SendBufferGpadlHandle);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we failed here, we might as well return and have a leak
|
* If we failed here, we might as well return and have a leak
|
||||||
|
|
Loading…
Add table
Reference in a new issue