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, Apr 19, 12:44 PM
Unknown Object (File)
Wed, Apr 15, 3:39 AM
Unknown Object (File)
Sat, Apr 11, 4:56 PM
Unknown Object (File)
Sat, Apr 11, 1:25 PM
Unknown Object (File)
Tue, Apr 7, 1:54 AM
Unknown Object (File)
Sun, Apr 5, 8:50 AM
Unknown Object (File)
Sun, Mar 29, 2:40 AM
Unknown Object (File)
Sat, Mar 28, 6:34 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 Not Applicable
Unit
Tests Not Applicable