init: fix repeat early-init in triggerType[]

Signed-off-by: sun_fan <sun_fan1@hoperun.com>
This commit is contained in:
sun_fan 2021-08-09 17:05:58 +08:00
parent 03ba491ff2
commit 8765067144

View File

@ -194,7 +194,7 @@ static int GetTriggerIndex(const char *type)
return TRIGGER_PARAM;
}
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"
};
for (size_t i = 0; i < sizeof(triggerType) / sizeof(char*); i++) {
@ -418,4 +418,4 @@ TriggerNode *GetTriggerByName(TriggerWorkSpace *workSpace, const char *triggerNa
}
}
return NULL;
}
}