mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
- A bit of cleanup (no code change).
svn path=/trunk/; revision=31283
This commit is contained in:
parent
8918c7ecb0
commit
137d8c4897
3 changed files with 5 additions and 9 deletions
|
@ -346,4 +346,3 @@ CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
|
|||
/* Set new delay size and remove the delete flag */
|
||||
Kcb->DelayedCloseIndex = CmpDelayedCloseSize;
|
||||
}
|
||||
|
||||
|
|
|
@ -925,8 +925,8 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody,
|
|||
if (!(Flags & CMP_ENLIST_KCB_LOCKED_EXCLUSIVE))
|
||||
{
|
||||
/* Acquire the lock */
|
||||
CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
|
||||
}
|
||||
CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
|
||||
}
|
||||
|
||||
/* Make sure we have the exclusive lock */
|
||||
ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) ||
|
||||
|
@ -941,7 +941,7 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody,
|
|||
CMP_ENLIST_KCB_LOCKED_EXCLUSIVE)))
|
||||
{
|
||||
/* Release the lock */
|
||||
CmpReleaseKcbLock(KeyBody->KeyControlBlock);
|
||||
CmpReleaseKcbLock(KeyBody->KeyControlBlock);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -974,7 +974,7 @@ DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody,
|
|||
ASSERT(IsListEmpty(&KeyBody->KeyBodyList) == FALSE);
|
||||
|
||||
/* Lock the KCB */
|
||||
if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
|
||||
if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
|
||||
ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) ||
|
||||
(CmpTestRegistryLockExclusive() == TRUE));
|
||||
|
||||
|
@ -982,7 +982,5 @@ DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody,
|
|||
RemoveEntryList(&KeyBody->KeyBodyList);
|
||||
|
||||
/* Unlock it it if we did a manual lock */
|
||||
if (!LockHeld) CmpReleaseKcbLock(KeyBody->KeyControlBlock);
|
||||
if (!LockHeld) CmpReleaseKcbLock(KeyBody->KeyControlBlock);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,4 +29,3 @@ CmpInitHiveViewList(IN PCMHIVE Hive)
|
|||
Hive->PinnedViews = 0;
|
||||
Hive->UseCount = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue