Page MenuHomeFreeBSD

sound: Move sndstat_prepare_pcm() to pcm/sndstat.c and remove sndstat_entry->handler
ClosedPublic

Authored by christos on Mar 31 2024, 5:53 AM.
Tags
None
Referenced Files
F160265705: D44571.id136442.diff
Mon, Jun 22, 5:34 PM
Unknown Object (File)
Sat, Jun 13, 3:25 PM
Unknown Object (File)
Sat, Jun 13, 11:31 AM
Unknown Object (File)
Wed, Jun 10, 1:25 AM
Unknown Object (File)
May 11 2026, 10:52 PM
Unknown Object (File)
May 11 2026, 10:46 PM
Unknown Object (File)
May 3 2026, 10:35 PM
Unknown Object (File)
Apr 27 2026, 6:30 PM
Subscribers

Details

Summary

Since all sndstat_entry->handler fields point to sndstat_prepare_pcm(),
we can just call the function directly, without assigning it to a
function pointer and calling it indirectly.

While here, move sndstat_prepare_pcm() to pcm/sndstat.c, as it is more
suitable there.

No functional change intended.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56847
Build 53735: arc lint + arc unit