Skip to content

Few minor fixes#10779

Merged
lgirdwood merged 2 commits into
thesofproject:mainfrom
serhiy-katsyuba-intel:minor_fixes
May 15, 2026
Merged

Few minor fixes#10779
lgirdwood merged 2 commits into
thesofproject:mainfrom
serhiy-katsyuba-intel:minor_fixes

Conversation

@serhiy-katsyuba-intel
Copy link
Copy Markdown
Contributor

  • ipc4: remove unnecessary code
    icd is NULL by the time rfree(icd) is called, hence rfree(icd) can be removed.

  • ipc4: fix minor typo
    Fix two switched letters in SOF_IPC4_INVALID_RESOURCE_EVENT_TYPE declaration.

icd is NULL by the time rfree(icd) is called, hence rfree(icd) can be
removed.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
Fix two switched letters in SOF_IPC4_INVALID_RESOURCE_EVENT_TYPE
declaration.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Two small cleanups in the IPC4 code: drop a no-op free on a NULL pointer and correct a typo in an enum identifier.

Changes:

  • Remove dead rfree(icd) call on the allocation-failure path in ipc4_add_comp_dev (icd is NULL there).
  • Rename SOF_IPC4_INVALID_RESORUCE_EVENT_TYPE to SOF_IPC4_INVALID_RESOURCE_EVENT_TYPE.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/ipc/ipc4/helper.c Removes redundant rfree(icd) on alloc-failure path.
src/include/ipc4/notification.h Fixes typo in enum constant name (RESORUCE → RESOURCE).

@lgirdwood lgirdwood merged commit aceccc1 into thesofproject:main May 15, 2026
47 of 48 checks passed
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.

7 participants