Commit c63ba9e1 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: storvsc: Cleanup the exit function in storvsc_drv.c

Get rid of unnecessary layering in the module exit path.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a1997c20
...@@ -792,7 +792,7 @@ static int storvsc_drv_init(void) ...@@ -792,7 +792,7 @@ static int storvsc_drv_init(void)
return ret; return ret;
} }
static void storvsc_drv_exit(void) static void __exit storvsc_drv_exit(void)
{ {
vmbus_child_driver_unregister(&storvsc_drv.driver); vmbus_child_driver_unregister(&storvsc_drv.driver);
} }
...@@ -806,13 +806,8 @@ static int __init storvsc_init(void) ...@@ -806,13 +806,8 @@ static int __init storvsc_init(void)
return ret; return ret;
} }
static void __exit storvsc_exit(void)
{
storvsc_drv_exit();
}
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION); MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V virtual storage driver"); MODULE_DESCRIPTION("Microsoft Hyper-V virtual storage driver");
module_init(storvsc_init); module_init(storvsc_init);
module_exit(storvsc_exit); module_exit(storvsc_drv_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment