HomeFreeBSD

usr.bin/units: use else..if to avoid calling the next branch

Description

usr.bin/units: use else..if to avoid calling the next branch

Even if the first branch succeeds, next time it will still check for
the second branch (which will be false) as the first one was true.
Add an else..if statement to address this.

Signed-off-by: rilysh <nightquick@proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1165

Details

Provenance
rilysh <nightquick@proton.me>Authored on Fri, Apr 19, 10:53 PM
impCommitted on Fri, Apr 19, 10:54 PM
Parents
rG1f2776e12360: Add support for Intel Atom S1200 UART
Branches
Unknown
Tags
Unknown