!132 fix: correct ECB in comment

Merge pull request !132 from kenneth/los_sem.c
This commit is contained in:
openharmony_ci 2021-05-19 13:35:43 +08:00 committed by Gitee
commit be5344ae75
1 changed files with 3 additions and 4 deletions

View File

@ -67,7 +67,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID)
return LOS_ERRNO_SEM_NO_MEMORY; return LOS_ERRNO_SEM_NO_MEMORY;
} }
/* Connect all the ECBs in a doubly linked list. */ /* Connect all the semaphore CBs in a doubly linked list. */
for (index = 0; index < LOSCFG_BASE_IPC_SEM_LIMIT; index++) { for (index = 0; index < LOSCFG_BASE_IPC_SEM_LIMIT; index++) {
semNode = ((LosSemCB *)g_allSem) + index; semNode = ((LosSemCB *)g_allSem) + index;
semNode->semID = index; semNode->semID = index;
@ -313,4 +313,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle)
} }
#endif /* (LOSCFG_BASE_IPC_SEM == 1) */ #endif /* (LOSCFG_BASE_IPC_SEM == 1) */