rimage: remove incorrect module order check

The original check for "i - 1 == type" is used to make
sure that all modules in toml file are in order from 0
to max continuously. But the problem is that some modules
are not supported now or some modules share the same module
type of efx, so this check is incorrect.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2022-11-21 13:50:23 +08:00 committed by Michal Wasko
parent 6623073ca8
commit f51ff46635
1 changed files with 0 additions and 7 deletions

View File

@ -2201,13 +2201,6 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
if (ret < 0)
return err_key_parse("module_type", NULL);
if (strcmp((char *)mod_man->name, "BRNGUP") &&
strcmp((char *)mod_man->name, "BASEFW")) {
if (type != i - 1) {
log_err(ret, "error: invalid type %d", type);
return -EINVAL;
}
}
header->module_type = type;
ret = parse_scheduling(mod_entry, &ctx_entry,