Merged in masayuki2009/nuttx.nuttx/smp_test (pull request #451)

sched/: Fix return value in sched_setaffinity()

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Masayuki Ishikawa 2017-08-07 09:24:09 +00:00 committed by Gregory Nutt
commit 1dfed49a3c

View File

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