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)
Oct 7 2024, 10:41 AM
Unknown Object (File)
Oct 7 2024, 10:41 AM
Unknown Object (File)
Oct 7 2024, 10:40 AM
Unknown Object (File)
Oct 7 2024, 10:17 AM
Unknown Object (File)
Oct 2 2024, 3:52 AM
Unknown Object (File)
Sep 19 2024, 10:42 PM
Unknown Object (File)
Sep 18 2024, 11:03 PM
Unknown Object (File)
Sep 14 2024, 7:03 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56847
Build 53735: arc lint + arc unit