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)
Mon, Jul 7, 12:58 AM
Unknown Object (File)
Mon, Jun 30, 2:08 PM
Unknown Object (File)
Sun, Jun 29, 2:15 AM
Unknown Object (File)
Fri, Jun 27, 4:43 PM
Unknown Object (File)
Tue, Jun 24, 8:23 PM
Unknown Object (File)
Sat, Jun 21, 10:52 PM
Unknown Object (File)
Thu, Jun 19, 1:27 AM
Unknown Object (File)
Wed, Jun 18, 8:12 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