CppCheck: Make it return value not without return, in cellSpurs.cpp.

This commit is contained in:
luxsie 2015-04-10 19:14:33 +08:00
parent 30acfb89c3
commit f6392baab3

View File

@ -2206,7 +2206,8 @@ s32 cellSpursCreateTasksetWithAttribute(vm::ptr<CellSpurs> spurs, vm::ptr<CellSp
if (!attr)
{
CELL_SPURS_TASK_ERROR_NULL_POINTER;
// Syphurith: If that is intentionally done, please remove the 'return'. Or else just remove this comment.
return CELL_SPURS_TASK_ERROR_NULL_POINTER;
}
if (attr.addr() % CellSpursTasksetAttribute::align)
@ -2374,7 +2375,8 @@ s32 spursCreateTask(vm::ptr<CellSpursTaskset> taskset, vm::ptr<u32> task_id, vm:
if (tmp_task_id >= CELL_SPURS_MAX_TASK)
{
CELL_SPURS_TASK_ERROR_AGAIN;
// Syphurith: If that is intentionally done, please remove the 'return'. Or else just remove this comment.
return CELL_SPURS_TASK_ERROR_AGAIN;
}
taskset->m.task_info[tmp_task_id].elf_addr.set(elf_addr.addr());