X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fmisc%2Fvmw_vmci%2Fvmci_host.c;h=9ec262a526564134a0a61b4fa442549ea0ea2c57;hb=f368ed6088ae9c1fbe1c897bb5f215ce5e63fa1e;hp=a721b5d8a9dacdafe85257c64ea7c1f545e6f743;hpb=59fd7e4b0b0769638b5162e56c28bbb027a118d3;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/misc/vmw_vmci/vmci_host.c b/drivers/misc/vmw_vmci/vmci_host.c index a721b5d8a9da..9ec262a52656 100644 --- a/drivers/misc/vmw_vmci/vmci_host.c +++ b/drivers/misc/vmw_vmci/vmci_host.c @@ -1031,14 +1031,9 @@ int __init vmci_host_init(void) void __exit vmci_host_exit(void) { - int error; - vmci_host_device_initialized = false; - error = misc_deregister(&vmci_host_miscdev); - if (error) - pr_warn("Error unregistering character device: %d\n", error); - + misc_deregister(&vmci_host_miscdev); vmci_ctx_destroy(host_context); vmci_qp_broker_exit();