HomeFreeBSD

ifconfig: skip calling fnmatch once the result no longer matters

Description

ifconfig: skip calling fnmatch once the result no longer matters

Because fnmatch has no side effects, we can safely avoid calling fnmatch
if the end result does not matter anyway (the compiler cannot see this,
so it calls fnmatch in the event it has side-effects).

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/747

Details

Provenance
gfunni234_gmail.comAuthored on Jun 27 2023, 10:18 PM
impCommitted on Jun 27 2023, 10:28 PM
Parents
rGef747607ead4: vm_fault: move FAULT_* return codes out of range for Mach errors
Branches
Unknown
Tags
Unknown