Skip to content

Commit

Permalink
Staging: hv: netvsc: call vmbus_open directly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent 36ceadf commit 81c92f4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81c92f4

Please sign in to comment.