Bugzilla Bug 341122: it's not necessary to test slot->slotLock because

slot->slotLock cannot be NULL at that point.  The patch is contributed by
Ryan Jones <sciguyryan+bugzilla@gmail.com>. r=nelsonb,wtc.
This commit is contained in:
wtchang%redhat.com 2006-10-23 22:56:31 +00:00
Родитель 493a9afaf0
Коммит 9526c81448
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -2856,10 +2856,8 @@ SFTK_DestroySlotData(SFTKSlot *slot)
/* OK everything has been disassembled, now we can finally get rid
* of the locks */
if (slot->slotLock) {
PZ_DestroyLock(slot->slotLock);
slot->slotLock = NULL;
}
PZ_DestroyLock(slot->slotLock);
slot->slotLock = NULL;
if (slot->sessionLock) {
for (i=0; i < slot->numSessionLocks; i++) {
if (slot->sessionLock[i]) {