Page MenuHomeFreeBSD

atkbd(4): Just use nitems() for quirk enumeration
ClosedPublic

Authored by cem on Dec 5 2020, 8:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 3:51 PM
Unknown Object (File)
Nov 11 2024, 2:52 PM
Unknown Object (File)
Oct 16 2024, 4:25 AM
Unknown Object (File)
Oct 10 2024, 6:53 AM
Unknown Object (File)
Oct 1 2024, 2:11 PM
Unknown Object (File)
Sep 30 2024, 12:39 AM
Unknown Object (File)
Sep 30 2024, 12:39 AM
Unknown Object (File)
Sep 30 2024, 12:39 AM
Subscribers

Details

Summary

X-MFC-With: r368365

Test Plan

nitems is commonly used for enumerating these statically-sized tables, and is
(IMO) clearer here.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35208
Build 32153: arc lint + arc unit

Event Timeline

cem requested review of this revision.Dec 5 2020, 8:43 PM

Looks clearer to me too, and this isn't a linker set or anything else you have to take pains with...

This revision is now accepted and ready to land.Dec 5 2020, 9:30 PM

Thanks for the quick look, folks!

This revision was automatically updated to reflect the committed changes.