mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 03:48:00 +00: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 */
|
||||
ret = Device->Driver->VmbusChannelInterface.Open(Device,
|
||||
netDriver->RingBufferSize,
|
||||
netDriver->RingBufferSize,
|
||||
NULL, 0,
|
||||
NetVscOnChannelCallback,
|
||||
Device);
|
||||
ret = vmbus_open(Device->channel, netDriver->RingBufferSize,
|
||||
netDriver->RingBufferSize, NULL, 0,
|
||||
NetVscOnChannelCallback, Device);
|
||||
|
||||
if (ret != 0) {
|
||||
DPRINT_ERR(NETVSC, "unable to open channel: %d", ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user