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
F109809281: D44571.diff
Sun, Feb 9, 7:55 PM
Unknown Object (File)
Fri, Jan 24, 2:00 PM
Unknown Object (File)
Thu, Jan 23, 10:38 PM
Unknown Object (File)
Jan 9 2025, 2:04 AM
Unknown Object (File)
Jan 5 2025, 12:04 AM
Unknown Object (File)
Jan 4 2025, 10:53 PM
Unknown Object (File)
Jan 4 2025, 10:51 PM
Unknown Object (File)
Dec 12 2024, 5:12 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