Page MenuHomeFreeBSD

sound: Use nitems() where possible
ClosedPublic

Authored by christos on Apr 29 2024, 4:22 PM.
Tags
None
Referenced Files
F139367118: D45014.id138178.diff
Thu, Dec 11, 7:50 AM
Unknown Object (File)
Thu, Nov 27, 10:17 PM
Unknown Object (File)
Nov 7 2025, 10:41 AM
Unknown Object (File)
Nov 5 2025, 7:05 PM
Unknown Object (File)
Nov 5 2025, 2:45 AM
Unknown Object (File)
Nov 5 2025, 12:21 AM
Unknown Object (File)
Nov 5 2025, 12:21 AM
Unknown Object (File)
Nov 4 2025, 9:59 PM
Subscribers

Details

Summary

No functional change intended.

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

emaste added inline comments.
sys/dev/sound/pcm/feeder_format.c
124

this could be updated to size_t while here

276

and here

289

and here

This revision is now accepted and ready to land.Apr 29 2024, 5:12 PM

Indeed, it's nicer to use unsigned types (unsigned int or size_t) for comparisons with nitems().

This revision was automatically updated to reflect the committed changes.