Skip to content

Commit

Permalink
Staging: hv: Get rid of vmbus_cleanup() function
Browse files Browse the repository at this point in the history
Get rid of the vmbus_cleanup() function by inlining the
necessary code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent f51b359 commit ece0e32
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,6 @@ static int vmbus_dev_add(struct hv_device *dev, void *info)
}


/*
* vmbus_cleanup - Perform any cleanup when the driver is removed
*/
static void vmbus_cleanup(void)
{

hv_cleanup();
}

struct onmessage_work_context {
struct work_struct work;
struct hv_message msg;
Expand Down Expand Up @@ -560,7 +551,7 @@ static void vmbus_bus_exit(void)
vmbus_disconnect();
on_each_cpu(hv_synic_cleanup, NULL, 1);

vmbus_cleanup();
hv_cleanup();

/* Unregister the root bus device */
device_unregister(&dev_ctx->device);
Expand Down

0 comments on commit ece0e32

Please sign in to comment.