HomeFreeBSD

sound: Move global variable initialization to sound_modevent()

Description

sound: Move global variable initialization to sound_modevent()

There is no reason to initialize global variables in feeder_register(),
as these variables are unrelated to what the function does. Instead,
initialize them during sound(4) load.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D46749

Details

Provenance
christosAuthored on Oct 18 2024, 8:39 AM
Reviewer
zlei
Differential Revision
D46749: sound: Move global variable initialization to sound_modevent()
Parents
rG41ff41776145: sound: Fix indendation in sound_modevent() switch statement
Branches
Unknown
Tags
Unknown