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)
Fri, Oct 10, 8:40 PM
Unknown Object (File)
Fri, Oct 3, 2:42 AM
Unknown Object (File)
Fri, Sep 26, 1:37 AM
Unknown Object (File)
Mon, Sep 15, 4:06 PM
Unknown Object (File)
Sep 2 2025, 11:53 AM
Unknown Object (File)
Jul 7 2025, 12:58 AM
Unknown Object (File)
Jun 30 2025, 2:08 PM
Unknown Object (File)
Jun 29 2025, 2:15 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