Page MenuHomeFreeBSD

sound: Use nitems() where possible
ClosedPublic

Authored by christos on Mon, Apr 29, 4:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 9:47 PM
Unknown Object (File)
Thu, May 2, 4:12 AM
Unknown Object (File)
Tue, Apr 30, 10:41 PM
Unknown Object (File)
Tue, Apr 30, 2:10 PM
Unknown Object (File)
Tue, Apr 30, 2:09 PM
Unknown Object (File)
Tue, Apr 30, 7:56 AM
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.Mon, Apr 29, 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.