mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Staging: hv: netvsc: call vmbus_open 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
36ceadfc65
commit
81c92f43e7
@ -717,12 +717,9 @@ static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Open the channel */
|
/* Open the channel */
|
||||||
ret = Device->Driver->VmbusChannelInterface.Open(Device,
|
ret = vmbus_open(Device->channel, netDriver->RingBufferSize,
|
||||||
netDriver->RingBufferSize,
|
netDriver->RingBufferSize, NULL, 0,
|
||||||
netDriver->RingBufferSize,
|
NetVscOnChannelCallback, Device);
|
||||||
NULL, 0,
|
|
||||||
NetVscOnChannelCallback,
|
|
||||||
Device);
|
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
DPRINT_ERR(NETVSC, "unable to open channel: %d", ret);
|
DPRINT_ERR(NETVSC, "unable to open channel: %d", ret);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user