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
Unknown Object (File)
Mon, May 11, 10:52 PM
Unknown Object (File)
Mon, May 11, 10:46 PM
Unknown Object (File)
Sun, May 3, 10:35 PM
Unknown Object (File)
Apr 27 2026, 6:30 PM
Unknown Object (File)
Apr 19 2026, 12:44 PM
Unknown Object (File)
Apr 15 2026, 3:39 AM
Unknown Object (File)
Apr 11 2026, 4:56 PM
Unknown Object (File)
Apr 11 2026, 1:25 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 Not Applicable
Unit
Tests Not Applicable