sched/env: Don't need copy env variable from parent in env_dup
since caller always pass them if needed
int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
{
- FAR struct tcb_s *ptcb = this_task();
FAR char **envp = NULL;
size_t envc = 0;
int ret = OK;
@@ -78,7 +77,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
/* Is there an environment ? */
- if (envcp || (envcp = ptcb->group->tg_envp) != NULL)
+ if (envcp != NULL)
{
/* Count the strings */
