diff --git a/kernel/base/core/los_task.c b/kernel/base/core/los_task.c index dd6bb44e917aef5f0f0adb6e232fbbfeef2df50e..261c1207880229d1127de13d348ce0e6ab271ed9 100755 --- a/kernel/base/core/los_task.c +++ b/kernel/base/core/los_task.c @@ -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);