include: sys: time_units: fix missing final else

z_tmcvt() was missing final else statement in the
if else if construct. This commit removes the
else if in this small structure to comply with
guideline 15.7.

Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
This commit is contained in:
Jennifer Williams 2021-03-10 04:00:04 +02:00 committed by Anas Nashif
parent 734c65ad23
commit be916e04ea

View file

@ -96,7 +96,8 @@ static TIME_CONSTEXPR ALWAYS_INLINE uint64_t z_tmcvt(uint64_t t, uint32_t from_h
if (round_up) {
off = rdivisor - 1U;
} else if (round_off) {
}
if (round_off) {
off = rdivisor / 2U;
}
}