mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
sched/environ: Remove the unneeded cast in env_dup
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
ce49c80976
commit
9794068a9c
@@ -78,7 +78,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
|
||||
|
||||
/* Is there an environment ? */
|
||||
|
||||
if (envcp || (envcp = (FAR char * const *)ptcb->group->tg_envp))
|
||||
if (envcp || (envcp = ptcb->group->tg_envp))
|
||||
{
|
||||
/* Count the strings */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user