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)
Sun, Mar 15, 8:34 AM
Unknown Object (File)
Sun, Mar 8, 7:35 PM
Unknown Object (File)
Fri, Mar 6, 3:33 PM
Unknown Object (File)
Sat, Feb 28, 4:30 PM
Unknown Object (File)
Sat, Feb 21, 5:48 AM
Unknown Object (File)
Jan 16 2026, 8:12 AM
Unknown Object (File)
Jan 5 2026, 11:15 PM
Unknown Object (File)
Dec 31 2025, 5:16 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