Skip to content

notifier: remove an unused function argument - #11242

Open
lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:notify
Open

lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:notify

Conversation

@lyakh

@lyakh lyakh commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

notifier registration flags are unused, remove them

Copilot AI lite review requested due to automatic review settings September 28, 2026 10:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Correct the aggregate registration lookup before approval.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Simplifies notifier address calculation and merges two split lines.

Changes:

  • Simplifies callback handle lookup.
  • Combines the allocator call onto one line.
  • Critical issue: aggregate registration treats the sentinel list head as a callback node, risking memory corruption.
File Summary
src/​lib/​notifier.c Updates notifier registration logic and formatting; aggregate registration requires correction.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/lib/notifier.c Outdated

@kv2019i kv2019i 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.

Not sure this is code worth keeping....

Comment thread src/lib/notifier.c Outdated
@lyakh lyakh changed the title notifier: (cosmetic) simplify a calculation and merge 2 lines notifier: remove an unused function argument Sep 29, 2026
The "flags" argument of notifier_register() is unused, remove it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
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