Staging: hv: remove WaitEventClose()
All WaitEventClose() close did was call kfree(), so get rid of it and
replace it with a call to kfree()
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c
index 33e5628..8d76bd4 100644
--- a/drivers/staging/hv/Connection.c
+++ b/drivers/staging/hv/Connection.c
@@ -155,7 +155,7 @@
}
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
DPRINT_EXIT(VMBUS);
@@ -183,7 +183,7 @@
if (msgInfo)
{
if (msgInfo->WaitEvent)
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
}