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:
parent
734c65ad23
commit
be916e04ea
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue