From 87815c20ead9ca60bd44a70655c12f1718403f7a Mon Sep 17 00:00:00 2001 From: NicJA Date: Wed, 13 May 2015 20:13:02 +0000 Subject: [PATCH] just use FindTask directly so we don't waste storage (and also the need to call it in case we fail to allocate the etask at all) git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50675 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/exec/exec_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rom/exec/exec_util.c b/rom/exec/exec_util.c index 55ea65985d..355a4aba3c 100644 --- a/rom/exec/exec_util.c +++ b/rom/exec/exec_util.c @@ -79,7 +79,6 @@ BOOL Exec_InitETask(struct Task *task, struct ExecBase *SysBase) { - struct Task *thistask = FindTask(NULL); /* * We don't add this to the task memory, it isn't free'd by * RemTask(), rather by somebody else calling ChildFree(). @@ -100,7 +99,7 @@ Exec_InitETask(struct Task *task, struct ExecBase *SysBase) IntETask(et)->iet_CpuAffinity = (1 << 0); #endif - et->et_Parent = thistask; + et->et_Parent = FindTask(NULL); NEWLIST(&et->et_Children); /* Initialise the message list */ -- 2.11.4.GIT