提交 87650671 编写于 作者: S sun_fan

init: fix repeat early-init in triggerType[]

Signed-off-by: Nsun_fan <sun_fan1@hoperun.com>
上级 03ba491f
...@@ -194,7 +194,7 @@ static int GetTriggerIndex(const char *type) ...@@ -194,7 +194,7 @@ static int GetTriggerIndex(const char *type)
return TRIGGER_PARAM; return TRIGGER_PARAM;
} }
static const char *triggerType[] = { static const char *triggerType[] = {
"pre-init", "boot", "early-init", "init", "early-init", "late-init", "post-init", "pre-init", "boot", "early-init", "init", "late-init", "post-init",
"early-fs", "post-fs", "late-fs", "post-fs-data" "early-fs", "post-fs", "late-fs", "post-fs-data"
}; };
for (size_t i = 0; i < sizeof(triggerType) / sizeof(char*); i++) { for (size_t i = 0; i < sizeof(triggerType) / sizeof(char*); i++) {
...@@ -418,4 +418,4 @@ TriggerNode *GetTriggerByName(TriggerWorkSpace *workSpace, const char *triggerNa ...@@ -418,4 +418,4 @@ TriggerNode *GetTriggerByName(TriggerWorkSpace *workSpace, const char *triggerNa
} }
} }
return NULL; return NULL;
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册