Skip to content

Commit

Permalink
modules: Remove unused module_entry_point from module_data
Browse files Browse the repository at this point in the history
The value assigned to the module_entry_point field in the module_data
structure wasn't used anywhere. This field has been removed.

Signed-off-by: Adrian Warecki <[email protected]>
  • Loading branch information
softwarecki committed Mar 1, 2024
1 parent 4d9b41e commit 0454dd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/audio/module_adapter/module/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ static int modules_init(struct processing_module *mod)
comp_err(dev, "modules_init(), lib_manager_allocate_module() failed!");
return -EINVAL;
}
md->module_entry_point = module_entry_point;
comp_info(mod->dev, "modules_init() start");

uint32_t module_id = IPC4_MOD_ID(mod->dev->ipc_config.id);
Expand Down Expand Up @@ -114,7 +113,7 @@ static int modules_init(struct processing_module *mod)
mod_buildinfo->api_version_number.full == SOF_MODULE_API_CURRENT_VERSION) {
/* If start agent for sof loadable */
is_native_sof = true;
drv->adapter_ops = native_system_agent_start(md->module_entry_point, module_id,
drv->adapter_ops = native_system_agent_start(module_entry_point, module_id,
instance_id, 0, log_handle, &mod_cfg);
} else
return -ENOEXEC;
Expand Down
1 change: 0 additions & 1 deletion src/include/module/module/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ struct module_data {
void *runtime_params;
struct module_memory memory; /**< memory allocated by module */
struct module_processing_data mpd; /**< shared data comp <-> module */
uint32_t module_entry_point; /**<loadable module entry point address */
#endif /* SOF_MODULE_PRIVATE */
};

Expand Down

0 comments on commit 0454dd9

Please sign in to comment.