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)
Jan 11 2024, 10:57 PM
Unknown Object (File)
Dec 20 2023, 7:24 AM
Unknown Object (File)
Nov 10 2023, 7:44 PM
Unknown Object (File)
Nov 7 2023, 6:52 PM
Unknown Object (File)
Nov 5 2023, 10:22 PM
Unknown Object (File)
Oct 30 2023, 9:13 PM
Unknown Object (File)
Oct 9 2023, 6:30 PM
Unknown Object (File)
Oct 6 2023, 5:43 PM
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 Not Applicable
Unit
Tests Not Applicable

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.