mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-13 07:14:49 +00:00
CppCheck: Make it return value not without return, in cellSpurs.cpp.
This commit is contained in:
parent
30acfb89c3
commit
f6392baab3
@ -2206,7 +2206,8 @@ s32 cellSpursCreateTasksetWithAttribute(vm::ptr<CellSpurs> spurs, vm::ptr<CellSp
|
|||||||
|
|
||||||
if (!attr)
|
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)
|
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)
|
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());
|
taskset->m.task_info[tmp_task_id].elf_addr.set(elf_addr.addr());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user