- A bit of cleanup (no code change).

svn path=/trunk/; revision=31283
This commit is contained in:
Aleksey Bragin 2007-12-16 17:23:38 +00:00
parent 8918c7ecb0
commit 137d8c4897
3 changed files with 5 additions and 9 deletions

View file

@ -346,4 +346,3 @@ CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
/* Set new delay size and remove the delete flag */ /* Set new delay size and remove the delete flag */
Kcb->DelayedCloseIndex = CmpDelayedCloseSize; Kcb->DelayedCloseIndex = CmpDelayedCloseSize;
} }

View file

@ -925,8 +925,8 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody,
if (!(Flags & CMP_ENLIST_KCB_LOCKED_EXCLUSIVE)) if (!(Flags & CMP_ENLIST_KCB_LOCKED_EXCLUSIVE))
{ {
/* Acquire the lock */ /* Acquire the lock */
CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock); CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
} }
/* Make sure we have the exclusive lock */ /* Make sure we have the exclusive lock */
ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) || ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) ||
@ -941,7 +941,7 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody,
CMP_ENLIST_KCB_LOCKED_EXCLUSIVE))) CMP_ENLIST_KCB_LOCKED_EXCLUSIVE)))
{ {
/* Release the lock */ /* Release the lock */
CmpReleaseKcbLock(KeyBody->KeyControlBlock); CmpReleaseKcbLock(KeyBody->KeyControlBlock);
} }
} }
@ -974,7 +974,7 @@ DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody,
ASSERT(IsListEmpty(&KeyBody->KeyBodyList) == FALSE); ASSERT(IsListEmpty(&KeyBody->KeyBodyList) == FALSE);
/* Lock the KCB */ /* Lock the KCB */
if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock); if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock);
ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) || ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) ||
(CmpTestRegistryLockExclusive() == TRUE)); (CmpTestRegistryLockExclusive() == TRUE));
@ -982,7 +982,5 @@ DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody,
RemoveEntryList(&KeyBody->KeyBodyList); RemoveEntryList(&KeyBody->KeyBodyList);
/* Unlock it it if we did a manual lock */ /* Unlock it it if we did a manual lock */
if (!LockHeld) CmpReleaseKcbLock(KeyBody->KeyControlBlock); if (!LockHeld) CmpReleaseKcbLock(KeyBody->KeyControlBlock);
} }

View file

@ -29,4 +29,3 @@ CmpInitHiveViewList(IN PCMHIVE Hive)
Hive->PinnedViews = 0; Hive->PinnedViews = 0;
Hive->UseCount = 0; Hive->UseCount = 0;
} }