]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Staging: hv: Cleanup calls to cleanup() in hv_mouse.c
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:13 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:48:54 +0000 (13:48 -0700)
Cleanup calls to cleanup() in hv_mouse.c as this is an empty function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@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>
drivers/staging/hv/hv_mouse.c

index 523c428435ccf7f864e818ff3e9bee3009cf55d7..b7086634a445238526aa4764c256c7c8a528027b 100644 (file)
@@ -947,7 +947,6 @@ static int mousevsc_drv_exit_cb(struct device *dev, void *data)
 
 static void mousevsc_drv_exit(void)
 {
-       struct mousevsc_drv_obj *mousevsc_drv_obj = &g_mousevsc_drv;
        struct hv_driver *drv = &g_mousevsc_drv.base;
        int ret;
 
@@ -970,9 +969,6 @@ static void mousevsc_drv_exit(void)
                device_unregister(current_dev);
        }
 
-       if (mousevsc_drv_obj->base.cleanup)
-               mousevsc_drv_obj->base.cleanup(&mousevsc_drv_obj->base);
-
        vmbus_child_driver_unregister(&drv->driver);
 
        return;