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:
parent
c158ed2c32
commit
c3ed24aec6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue