!94 修改异常信息为Panic, 明确此处不可能返回的含义

Merge pull request !94 from zhushengle/new
This commit is contained in:
openharmony_ci 2021-03-24 18:59:15 +08:00 committed by Gitee
commit 0f841d0eca
1 changed files with 1 additions and 3 deletions

View File

@ -287,9 +287,7 @@ LITE_OS_SEC_TEXT VOID OsTaskToExit(LosTaskCB *taskCB, UINT32 status)
if (taskCB->taskStatus & OS_TASK_FLAG_DETACHED) {
UINT32 ret = OsTaskDeleteUnsafe(taskCB, status, intSave);
if (ret != LOS_OK) {
PRINT_ERR("Task exit delete failed! ERROR : 0x%x\n", ret);
}
LOS_Panic("Task delete failed! ERROR : 0x%x\n", ret);
}
OsTaskJoinPostUnsafe(taskCB);