Remove check for group to retriev argv string

Now the argument vector is stored in TLS, thus no need to check if group is valid

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2024-10-10 16:32:22 +08:00 committed by GUIDINGLI
parent c158ed2c32
commit c3ed24aec6
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ size_t group_argvstr(FAR struct tcb_s *tcb, FAR char *args, size_t size)
/* Sanity checks and idle tasks */
if (!tcb || !tcb->group || !tcb->group->tg_info || size < 1 ||
is_idle_task(tcb))
if (!tcb || size < 1 || is_idle_task(tcb))
{
*args = '\0';
return 0;