scheduler: Fix unused variable warnings

This commit is contained in:
Pawel Dziepak
2013-12-29 22:47:05 +01:00
parent a47974dd06
commit 56c0f467b0
2 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -265,11 +265,10 @@ RUN_QUEUE_CLASS_NAME::PeekMaximum() const
ASSERT(fHeads[priority] != NULL);
Element* element = fHeads[priority];
RunQueueLink<Element>* elementLink = sGetLink(element);
ASSERT(elementLink->fPriority == priority);
ASSERT(sGetLink(element)->fPriority == priority);
ASSERT(fTails[priority] != NULL);
ASSERT(elementLink->fPrevious == NULL);
ASSERT(sGetLink(element)->fPrevious == NULL);
return element;
}
+1 -2
View File
@@ -700,8 +700,7 @@ scheduler_set_cpu_enabled(int32 cpuID, bool enabled)
CPUEntry* cpu = &gCPUEntries[cpuID];
CoreEntry* core = cpu->Core();
int32 oldCPUCount = core->CPUCount();
ASSERT(oldCPUCount >= 0);
ASSERT(core->CPUCount() >= 0);
if (enabled)
cpu->Start();
else {