update kernel/base/ipc/los_futex.c.

This commit is contained in:
冷钦街 2021-01-15 07:13:07 +08:00 committed by Gitee
parent 538b159ca7
commit 91e4e73dab
1 changed files with 2 additions and 6 deletions

View File

@ -301,15 +301,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: