use not_an_error in sys_spinlock_trylock

This commit is contained in:
Megamouse 2020-07-16 19:51:44 +02:00
parent 5e7c6853c2
commit 6e25fea16a

View file

@ -37,7 +37,7 @@ error_code sys_spinlock_trylock(vm::ptr<atomic_be_t<u32>> lock)
if (*lock || lock->exchange(0xabadcafe)) if (*lock || lock->exchange(0xabadcafe))
{ {
return CELL_EBUSY; return not_an_error(CELL_EBUSY);
} }
return CELL_OK; return CELL_OK;