diff --git a/src/system/kernel/condition_variable.cpp b/src/system/kernel/condition_variable.cpp index 1d29fc38e4..5c47711e3b 100644 --- a/src/system/kernel/condition_variable.cpp +++ b/src/system/kernel/condition_variable.cpp @@ -66,15 +66,8 @@ dump_condition_variable(int argc, char** argv) ConditionVariable* variable = sConditionVariableHash.Lookup((void*)address); if (variable == NULL) { - // It might be a direct pointer to a condition variable. Search the - // hash. - ConditionVariableHash::Iterator it(&sConditionVariableHash); - while (ConditionVariable* hashVariable = it.Next()) { - if (hashVariable == (void*)address) { - variable = hashVariable; - break; - } - } + // It must be a direct pointer to a condition variable. + variable = (ConditionVariable*)address; } if (variable != NULL) {