sched: task_init as internal function shouldn't modify errno

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-03 19:56:49 +08:00
committed by patacongo
parent 8d1a0c2761
commit 3c84278aa7
2 changed files with 2 additions and 9 deletions
-1
View File
@@ -170,7 +170,6 @@ int exec_module(FAR const struct binary_s *binp)
stack, binp->stacksize, binp->entrypt, binp->argv);
if (ret < 0)
{
ret = -get_errno();
berr("task_init() failed: %d\n", ret);
kumm_free(stack);
goto errout_with_addrenv;