Page MenuHomeFreeBSD

sound: Remove unnecessary initializations in feeder_create()
ClosedPublic

Authored by christos on Nov 3 2025, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 19, 5:13 AM
Unknown Object (File)
Sat, Apr 18, 10:59 PM
Unknown Object (File)
Sat, Apr 18, 7:42 AM
Unknown Object (File)
Fri, Apr 17, 2:32 AM
Unknown Object (File)
Wed, Apr 8, 11:11 PM
Unknown Object (File)
Mon, Apr 6, 4:09 PM
Unknown Object (File)
Sun, Apr 5, 7:49 AM
Unknown Object (File)
Mar 17 2026, 10:19 PM
Subscribers

Details

Summary

We do not need to zero out fields since the struct is allocated with
M_ZERO. Also we no longer need to have a special case for the root
feeder.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/sound/pcm/feeder.c
100

It doesn't seem nice to assume that FEEDER_ROOT == 0?

sys/dev/sound/pcm/feeder.c
100

What do you mean?

markj added inline comments.
sys/dev/sound/pcm/feeder.c
100

I misread the change, never mind.

This revision is now accepted and ready to land.Nov 4 2025, 12:54 PM