sched: Don't need call get_errno after task_activate

since task_activate don't save the error code into errno

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-03 19:40:02 +08:00
committed by patacongo
parent 3c84278aa7
commit 5c748cea2a
3 changed files with 0 additions and 8 deletions
-1
View File
@@ -257,7 +257,6 @@ int exec_module(FAR const struct binary_s *binp)
ret = task_activate((FAR struct tcb_s *)tcb);
if (ret < 0)
{
ret = -get_errno();
berr("task_activate() failed: %d\n", ret);
goto errout_with_tcbinit;
}