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
F140610114: D44571.diff
Thu, Dec 25, 10:32 PM
Unknown Object (File)
Thu, Dec 11, 3:39 PM
Unknown Object (File)
Sun, Dec 7, 11:45 AM
Unknown Object (File)
Mon, Dec 1, 5:38 PM
Unknown Object (File)
Thu, Nov 27, 2:04 PM
Unknown Object (File)
Nov 21 2025, 6:53 PM
Unknown Object (File)
Nov 16 2025, 3:51 AM
Unknown Object (File)
Nov 14 2025, 10:48 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56847
Build 53735: arc lint + arc unit