sched/: Fix return value in sched_setaffinity()

This commit is contained in:
Masayuki Ishikawa 2017-08-07 14:59:37 +09:00
parent e57a5755cc
commit 4530a72379

View File

@ -159,5 +159,5 @@ errout_with_csection:
errout_with_lock:
sched_unlock();
set_errno(errcode);
return ERROR;
return errcode ? ERROR : OK;
}