mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user