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 8, 2024
1 parent 8a73367 commit b3e5d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/audio/module_adapter/module/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ 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(dev, "modules_init() start");

uint32_t module_id = IPC4_MOD_ID(dev->ipc_config.id);
Expand Down Expand Up @@ -114,7 +114,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;
md->ops = native_system_agent_start(md->module_entry_point, module_id,
md->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 @@ -59,7 +59,6 @@ struct module_data {
const struct module_interface *ops; /**< module specific operations */
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 b3e5d75

Please sign in to comment.