Remove unnecessary code and add some error explanations

This commit is contained in:
qarmin
2019-07-01 12:59:42 +02:00
parent eaaff9da31
commit 3c154eb93b
48 changed files with 149 additions and 187 deletions

View File

@ -346,7 +346,7 @@ class CommandQueueMT {
}
return NULL;
}
} else if (write_ptr >= dealloc_ptr) {
} else {
// ahead of dealloc_ptr, check that there is room
if ((COMMAND_MEM_SIZE - write_ptr) < alloc_size + sizeof(uint32_t)) {