diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-29 17:00:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:53 -0700 |
commit | 420beac4fcc9efd6f7d838ef7cc5693c58c98015 (patch) | |
tree | 7cfc301f5a3941c3e6050716fa87301feaf1fac0 /drivers/staging/hv/NetVsc.c | |
parent | de65a38406bdf712abc2a845fe1f3db7d1a083ed (diff) |
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/NetVsc.c')
-rw-r--r-- | drivers/staging/hv/NetVsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c index 9445e36423b..dea54098e51 100644 --- a/drivers/staging/hv/NetVsc.c +++ b/drivers/staging/hv/NetVsc.c @@ -880,7 +880,7 @@ Cleanup: if (netDevice) { - WaitEventClose(netDevice->ChannelInitEvent); + kfree(netDevice->ChannelInitEvent); while (!IsListEmpty(&netDevice->ReceivePacketList)) { @@ -963,7 +963,7 @@ NetVscOnDeviceRemove( kfree(netvscPacket); } - WaitEventClose(netDevice->ChannelInitEvent); + kfree(netDevice->ChannelInitEvent); FreeNetDevice(netDevice); DPRINT_EXIT(NETVSC); |