Skip to content

ipc4: copier: unused code cleanup - #9701

Merged
kv2019i merged 3 commits into
thesofproject:mainfrom
serhiy-katsyuba-intel:endp_cleanup
Dec 3, 2024
Merged

kv2019i merged 3 commits into
thesofproject:mainfrom
serhiy-katsyuba-intel:endp_cleanup

Conversation

@serhiy-katsyuba-intel

Copy link
Copy Markdown
Contributor
  • ipc4: ipcgtw: code cleanup
    The use of intermediate endpoint buffer was removed from gateways some time ago. However, the IPC gateway code still contained logic that unnecessarily creates such endpoint buffer. That code has now been removed.

  • ipc4: copier: remove unused endpoint_buffer[]
    The use of endpoint buffers in gateways was removed some time ago. endpoint_buffer[] is a leftover from an earlier refactoring, is not used, and can be removed.

  • ipc4: copier: remove unused endpoint[]
    The endpoint[] array is never initialized and is not really used.

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @ranj063 pls review

@ranj063 ranj063 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good except for a minor nit

Comment thread src/audio/copier/copier_ipcgtw.c Resolved
The use of intermediate endpoint buffer was removed from gateways
some time ago. However, the IPC gateway code still contained logic
that unnecessarily creates such endpoint buffer. That code has now
been removed.

Signed-off-by: Serhiy Katsyuba <[email protected]>
The use of endpoint buffers in gateways was removed some time ago.
endpoint_buffer[] is a leftover from an earlier refactoring, is not used,
and can be removed.

Signed-off-by: Serhiy Katsyuba <[email protected]>
The endpoint[] array is never initialized and is not really used.

Signed-off-by: Serhiy Katsyuba <[email protected]>
@kv2019i

kv2019i commented Dec 3, 2024

Copy link
Copy Markdown
Collaborator

@kv2019i
kv2019i merged commit fef7091 into thesofproject:main Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants