HomeFreeBSD

libsa: smbios: probe: BCD revision parsing is v2-only code; Expand comments

Description

libsa: smbios: probe: BCD revision parsing is v2-only code; Expand comments

The code parsing the BCD revision is only meaningful on v2, so move it
away into the appropriate 'if' branch to ease reading (and to avoid
a useless test).

Expand comments. In particular, make it clear that setting
'smbios.count' to '-1' removes the limit of the number of structures to
parse.

No functional change.

Reviewed by: imp, markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49284

Details

Provenance
olceAuthored on Mar 3 2025, 2:30 PM
Reviewer
imp
Differential Revision
D49284: libsa: smbios: probe: BCD revision parsing is v2-only code; Expand comments
Parents
rG3b2303ba3dba: libsa: smbios: Export the used entry point type to the kernel
Branches
Unknown
Tags
Unknown