Page MenuHomeFreeBSD

sound: Simplify sndbuf_clear() loop
ClosedPublic

Authored by christos on Nov 1 2025, 10:50 PM.
Tags
None
Referenced Files
F161583588: D53526.id.diff
Sun, Jul 5, 2:28 AM
Unknown Object (File)
Thu, Jun 25, 9:47 PM
Unknown Object (File)
Tue, Jun 23, 4:50 PM
Unknown Object (File)
May 29 2026, 4:53 AM
Unknown Object (File)
May 14 2026, 9:39 PM
Unknown Object (File)
May 14 2026, 5:34 PM
Unknown Object (File)
May 5 2026, 3:34 AM
Unknown Object (File)
May 3 2026, 9:57 AM
Subscribers

Details

Summary

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/buffer.c
281–282
for (; length > 0; length--, i++)
    p[i % b->bufsize] = data;
christos marked an inline comment as done.

Address Mark's comment.

This revision is now accepted and ready to land.Nov 3 2025, 1:47 PM
This revision was automatically updated to reflect the committed changes.