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
F137947789: D44571.id136442.diff
Thu, Nov 27, 2:04 PM
Unknown Object (File)
Fri, Nov 21, 6:53 PM
Unknown Object (File)
Sun, Nov 16, 3:51 AM
Unknown Object (File)
Fri, Nov 14, 10:48 AM
Unknown Object (File)
Fri, Nov 7, 10:28 PM
Unknown Object (File)
Wed, Oct 29, 8:27 AM
Unknown Object (File)
Oct 28 2025, 1:24 PM
Unknown Object (File)
Oct 24 2025, 5:36 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