HomeFreeBSD

Simplify vntype_to_kinfo() by returning when the desired value is found

Description

Simplify vntype_to_kinfo() by returning when the desired value is found
instead of breaking out of the loop and then immediately checking the loop
index so that if it was broken out of the proper value can be returned.

While here, use nitems().

Details

Provenance
jhbAuthored on
Parents
rS271485: Fix 'function declaration isn't a prototype' warning.
Branches
Unknown
Tags
Unknown

Event Timeline