mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
sched: task_init as internal function shouldn't modify errno
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user