!59 【轻量级 PR】:update kernel/base/ipc/los_futex.c.

Merge pull request !59 from 冷钦街/N/A
This commit is contained in:
openharmony_ci 2021-03-25 11:29:52 +08:00 committed by Gitee
commit 51e587ca44
1 changed files with 2 additions and 6 deletions

View File

@ -319,15 +319,11 @@ STATIC VOID OsFutexInsertNewFutexKeyToHash(FutexNode *node)
futexList != &(hashNode->lockList);
futexList = futexList->pstNext) {
headNode = OS_FUTEX_FROM_FUTEXLIST(futexList);
if (node->key > headNode->key) {
continue;
} else if (node->key < headNode->key) {
if (node->key <= headNode->key) {
LOS_ListTailInsert(&(headNode->futexList), &(node->futexList));
break;
}
LOS_ListTailInsert(&(headNode->futexList), &(node->futexList));
break;
}
EXIT: