Remove unused variables

This commit is contained in:
TuxSH 2017-06-15 01:57:57 +02:00
parent cc41003e1c
commit 12b561a27d

View File

@ -97,7 +97,6 @@ void rosalinaRescheduleThread(KThread *thread, bool lock)
void rosalinaLockThread(KThread *thread) void rosalinaLockThread(KThread *thread)
{ {
KThread *syncThread = synchronizationMutex->owner; KThread *syncThread = synchronizationMutex->owner;
s8 *eotc = (s8 *)thread->endOfThreadContext;
if(syncThread == NULL || syncThread != thread) if(syncThread == NULL || syncThread != thread)
rosalinaRescheduleThread(thread, true); rosalinaRescheduleThread(thread, true);
@ -151,7 +150,6 @@ void rosalinaUnlockAllThreads(void)
for(KLinkedListNode *node = threadList->list.nodes.first; node != (KLinkedListNode *)&threadList->list.nodes; node = node->next) for(KLinkedListNode *node = threadList->list.nodes.first; node != (KLinkedListNode *)&threadList->list.nodes; node = node->next)
{ {
KThread *thread = (KThread *)node->key; KThread *thread = (KThread *)node->key;
s8 *eotc = (s8 *)thread->endOfThreadContext;
if((thread->schedulingMask & 0xF) == 2) // thread is terminating if((thread->schedulingMask & 0xF) == 2) // thread is terminating
continue; continue;