From a8f684af9c8d5c2892d240d91a9d47f638b6e29f Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 4 Aug 2010 17:20:44 +0000 Subject: [PATCH] - remove type in join_kernel_tasks (typo in if-clause) git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@37 315a16e6-25f9-4109-90ae-ca3045a26c18 --- kernel/tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/tasks.c b/kernel/tasks.c index 32dc09ac..4a50ccb4 100644 --- a/kernel/tasks.c +++ b/kernel/tasks.c @@ -143,7 +143,7 @@ int join_kernel_task(tid_t id, void** result) * idle tasks are not allowed to wait for another task * they should always run... */ - if (BUILTIN_EXPECT(current_task->status, TASK_IDLE)) + if (BUILTIN_EXPECT(current_task->status == TASK_IDLE, 0)) goto join_out; /* a task is not able to wait for itself */