Page MenuHomeFreeBSD

sound: Remove unnecessary initializations in feeder_create()
ClosedPublic

Authored by christos on Nov 3 2025, 3:31 PM.
Tags
None
Referenced Files
F174460294: D53558.id166221.diff
Sat, Oct 3, 10:39 AM
Unknown Object (File)
Tue, Sep 29, 6:48 PM
Unknown Object (File)
Tue, Sep 29, 4:37 PM
Unknown Object (File)
Wed, Sep 16, 12:45 PM
Unknown Object (File)
Wed, Sep 9, 12:34 AM
Unknown Object (File)
Tue, Sep 8, 10:25 AM
Unknown Object (File)
Fri, Sep 4, 11:30 PM
Unknown Object (File)
Fri, Sep 4, 11:17 AM
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