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
F165313232: D44571.id136442.diff
Fri, Aug 7, 2:25 PM
F165289066: D44571.id136382.diff
Fri, Aug 7, 10:52 AM
Unknown Object (File)
Thu, Aug 6, 2:34 PM
Unknown Object (File)
Thu, Aug 6, 3:33 AM
Unknown Object (File)
Jun 22 2026, 5:34 PM
Unknown Object (File)
Jun 13 2026, 3:25 PM
Unknown Object (File)
Jun 13 2026, 11:31 AM
Unknown Object (File)
Jun 10 2026, 1:25 AM
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 Not Applicable
Unit
Tests Not Applicable