提交 930e92eb 编写于 作者: O openharmony_ci 提交者: Gitee

!131 fix: fix destroy typo

Merge pull request !131 from kenneth/los_event.h
...@@ -147,13 +147,13 @@ extern "C" { ...@@ -147,13 +147,13 @@ extern "C" {
/** /**
* @ingroup los_event * @ingroup los_event
* Event reading error code: should not be distory. * Event reading error code: should not be destroyed.
* *
* Value: 0x02001c08 * Value: 0x02001c08
* *
* Solution: Check whether the event list is not empty. * Solution: Check whether the event list is not empty.
*/ */
#define LOS_ERRNO_EVENT_SHOULD_NOT_DESTORY LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x08) #define LOS_ERRNO_EVENT_SHOULD_NOT_DESTROYED LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x08)
/** /**
* @ingroup los_event * @ingroup los_event
......
...@@ -196,7 +196,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventDestroy(PEVENT_CB_S eventCB) ...@@ -196,7 +196,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventDestroy(PEVENT_CB_S eventCB)
if (!LOS_ListEmpty(&eventCB->stEventList)) { if (!LOS_ListEmpty(&eventCB->stEventList)) {
LOS_IntRestore(intSave); LOS_IntRestore(intSave);
return LOS_ERRNO_EVENT_SHOULD_NOT_DESTORY; return LOS_ERRNO_EVENT_SHOULD_NOT_DESTROYED;
} }
eventCB->stEventList.pstNext = (LOS_DL_LIST *)NULL; eventCB->stEventList.pstNext = (LOS_DL_LIST *)NULL;
eventCB->stEventList.pstPrev = (LOS_DL_LIST *)NULL; eventCB->stEventList.pstPrev = (LOS_DL_LIST *)NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册