https://git.reactos.org/?p=reactos.git;a=commitdiff;h=008e035b7e2f84d4bf1f5…
commit 008e035b7e2f84d4bf1f57d8abd04b3ddd261d56
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sat Dec 30 11:46:57 2017 +0100
[LIBS] Use KeClearEvent instead of KeResetEvent where the previous state is not
needed.
---
sdk/lib/drivers/chew/workqueue.c | 2 +-
sdk/lib/drivers/rdbsslib/rdbss.c | 2 +-
sdk/lib/drivers/rxce/rxce.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sdk/lib/drivers/chew/workqueue.c b/sdk/lib/drivers/chew/workqueue.c
index 81f1aad7ec..cf83b8c7a0 100644
--- a/sdk/lib/drivers/chew/workqueue.c
+++ b/sdk/lib/drivers/chew/workqueue.c
@@ -81,7 +81,7 @@ BOOLEAN ChewCreate(VOID (*Worker)(PVOID), PVOID WorkerContext)
Item->Worker = Worker;
Item->WorkerContext = WorkerContext;
ExInterlockedInsertTailList(&WorkQueue, &Item->Entry,
&WorkQueueLock);
- KeResetEvent(&WorkQueueClear);
+ KeClearEvent(&WorkQueueClear);
IoQueueWorkItem(Item->WorkItem, ChewWorkItem, DelayedWorkQueue, Item);
return TRUE;
diff --git a/sdk/lib/drivers/rdbsslib/rdbss.c b/sdk/lib/drivers/rdbsslib/rdbss.c
index 15e4a2d28c..5cf02a1e66 100644
--- a/sdk/lib/drivers/rdbsslib/rdbss.c
+++ b/sdk/lib/drivers/rdbsslib/rdbss.c
@@ -4451,7 +4451,7 @@ RxCommonWrite(
1,
&RxStrucSupSpinLock) == 0)
{
- KeResetEvent(Fcb->NonPaged->OutstandingAsyncEvent);
+ KeClearEvent(Fcb->NonPaged->OutstandingAsyncEvent);
}
UnwindOutstandingAsync = TRUE;
diff --git a/sdk/lib/drivers/rxce/rxce.c b/sdk/lib/drivers/rxce/rxce.c
index 6aad39ced3..8a06e5591a 100644
--- a/sdk/lib/drivers/rxce/rxce.c
+++ b/sdk/lib/drivers/rxce/rxce.c
@@ -7894,7 +7894,7 @@ RxScavengerTimerRoutine(
{
/* Done */
Scavenger->State = RDBSS_SCAVENGER_ACTIVE;
- KeResetEvent(&Scavenger->ScavengeEvent);
+ KeClearEvent(&Scavenger->ScavengeEvent);
/* Scavenger the entries */
RxReleaseScavengerMutex();
@@ -7982,7 +7982,7 @@ RxSpinUpRequestsDispatcher(
{
ListEntry = &RxDispatcher->SpinUpRequests;
}
- KeResetEvent(&RxDispatcher->SpinUpRequestsEvent);
+ KeClearEvent(&RxDispatcher->SpinUpRequestsEvent);
KeReleaseSpinLock(&RxDispatcher->SpinUpRequestsLock, OldIrql);
while (ListEntry != &RxDispatcher->SpinUpRequests)