Skip to content

Commit

Permalink
apps: examples: load_fw: Do not re-init rproc mems list
Browse files Browse the repository at this point in the history
The memory list is already initialized before this callback is called.
Remove this redundant initialization.

Signed-off-by: Andrew Davis <[email protected]>
  • Loading branch information
glneo committed Mar 18, 2024
1 parent b2c0478 commit 408e698
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ static struct remoteproc *apu_rproc_init(struct remoteproc *rproc,
priv->rproc = rproc;
priv->cpu_id = cpu_id;
priv->rproc->ops = ops;
metal_list_init(&priv->rproc->mems);
priv->rproc->priv = priv;
rproc->state = RPROC_READY;
return priv->rproc;
Expand Down
1 change: 0 additions & 1 deletion apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ struct remoteproc *r5_rproc_init(struct remoteproc *rproc,
priv->rproc = rproc;
priv->cpu_id = cpu_id;
priv->rproc->ops = ops;
metal_list_init(&priv->rproc->mems);
priv->rproc->priv = priv;
priv->rpu_base = RPU_BASE_ADDR;
metal_io_init(&priv->rpu_io, (void *)RPU_BASE_ADDR, &priv->rpu_base,
Expand Down
1 change: 0 additions & 1 deletion apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static struct remoteproc *rpu_rproc_init(struct remoteproc *rproc,
priv->rproc = rproc;
priv->cpu_id = cpu_id;
priv->rproc->ops = ops;
metal_list_init(&priv->rproc->mems);
priv->rproc->priv = priv;
rproc->state = RPROC_READY;
return priv->rproc;
Expand Down

0 comments on commit 408e698

Please sign in to comment.