summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/StorVsc.c
diff options
context:
space:
mode:
authorBill Pemberton2009-07-29 23:00:10 +0200
committerGreg Kroah-Hartman2009-09-15 21:01:53 +0200
commit420beac4fcc9efd6f7d838ef7cc5693c58c98015 (patch)
tree7cfc301f5a3941c3e6050716fa87301feaf1fac0 /drivers/staging/hv/StorVsc.c
parentStaging: hv: rework use of workqueues in osd (diff)
downloadkernel-qcow2-linux-420beac4fcc9efd6f7d838ef7cc5693c58c98015.tar.gz
kernel-qcow2-linux-420beac4fcc9efd6f7d838ef7cc5693c58c98015.tar.xz
kernel-qcow2-linux-420beac4fcc9efd6f7d838ef7cc5693c58c98015.zip
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>
Diffstat (limited to 'drivers/staging/hv/StorVsc.c')
-rw-r--r--drivers/staging/hv/StorVsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/StorVsc.c b/drivers/staging/hv/StorVsc.c
index 1c82e7923ff0..ef8031fd3850 100644
--- a/drivers/staging/hv/StorVsc.c
+++ b/drivers/staging/hv/StorVsc.c
@@ -516,7 +516,7 @@ static int StorVscChannelInit(struct hv_device *Device)
Cleanup:
if (request->WaitEvent)
{
- WaitEventClose(request->WaitEvent);
+ kfree(request->WaitEvent);
request->WaitEvent = NULL;
}
@@ -678,7 +678,7 @@ StorVscOnHostReset(
/* FIXME: Add a timeout */
WaitEventWait(request->WaitEvent);
- WaitEventClose(request->WaitEvent);
+ kfree(request->WaitEvent);
DPRINT_INFO(STORVSC, "host adapter reset completed");
/*