diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-08 10:25:01 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:42:36 -0800 |
commit | 4f28900bcf9bb5e6fb0c18fc7ee325df66fe8bbd (patch) | |
tree | 785524907e8b6f29ed193b32913cc700a86f39b1 /drivers/staging/hv/netvsc_drv.c | |
parent | 2d0753464b497287565c2e54d3ae67666852ef57 (diff) | |
download | linux-4f28900bcf9bb5e6fb0c18fc7ee325df66fe8bbd.tar.gz linux-4f28900bcf9bb5e6fb0c18fc7ee325df66fe8bbd.tar.bz2 linux-4f28900bcf9bb5e6fb0c18fc7ee325df66fe8bbd.zip |
Staging: hv: remove unneeded OnClose callback
This callback only calls one function, so just call the function
instead, no need for indirection at all.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/netvsc_drv.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index 515cd2361bf2..3234a7c4a429 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -101,11 +101,6 @@ static int netvsc_open(struct net_device *net) static int netvsc_close(struct net_device *net) { struct net_device_context *net_device_ctx = netdev_priv(net); - struct driver_context *driver_ctx = - driver_to_driver_context(net_device_ctx->device_ctx->device.driver); - struct netvsc_driver_context *net_drv_ctx = - (struct netvsc_driver_context *)driver_ctx; - struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj; struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj; int ret; @@ -113,7 +108,7 @@ static int netvsc_close(struct net_device *net) netif_stop_queue(net); - ret = net_drv_obj->OnClose(device_obj); + ret = RndisFilterOnClose(device_obj); if (ret != 0) DPRINT_ERR(NETVSC_DRV, "unable to close device (ret %d).", ret); |