mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:CM] Simplify CmpDelayAllocBucketLock code a bit (#5729)
- Remove duplicate CmpDelayAllocBucketLock definition. - Remove an else.
This commit is contained in:
parent
f2a012240f
commit
c84b5007d0
1 changed files with 8 additions and 10 deletions
|
@ -15,9 +15,9 @@
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
BOOLEAN CmpAllocInited;
|
BOOLEAN CmpAllocInited;
|
||||||
KGUARDED_MUTEX CmpAllocBucketLock, CmpDelayAllocBucketLock;
|
KGUARDED_MUTEX CmpAllocBucketLock;
|
||||||
|
|
||||||
LIST_ENTRY CmpFreeKCBListHead;
|
LIST_ENTRY CmpFreeKCBListHead;
|
||||||
|
|
||||||
KGUARDED_MUTEX CmpDelayAllocBucketLock;
|
KGUARDED_MUTEX CmpDelayAllocBucketLock;
|
||||||
LIST_ENTRY CmpFreeDelayItemsListHead;
|
LIST_ENTRY CmpFreeDelayItemsListHead;
|
||||||
|
|
||||||
|
@ -252,16 +252,14 @@ SearchList:
|
||||||
/* Clear the KCB pointer */
|
/* Clear the KCB pointer */
|
||||||
Entry->Kcb = NULL;
|
Entry->Kcb = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
/* Do the search again */
|
||||||
{
|
goto SearchList;
|
||||||
/* Release the lock */
|
|
||||||
KeReleaseGuardedMutex(&CmpDelayAllocBucketLock);
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do the search again */
|
/* Release the lock */
|
||||||
goto SearchList;
|
KeReleaseGuardedMutex(&CmpDelayAllocBucketLock);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue