Bluetooth: Controller: Fix coverity issue 330043

Fix coverity issue 330043, Unsigned compared against 0.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-01-29 12:17:18 +01:00 committed by Carles Cufí
commit f214913e16

View file

@ -261,8 +261,13 @@ uint8_t ll_big_create(uint8_t big_handle, uint8_t adv_handle, uint8_t num_bis,
ticks_slot_sync += ticks_slot_overhead; ticks_slot_sync += ticks_slot_overhead;
/* Calculate total overheads due to extended and periodic advertising */ /* Calculate total overheads due to extended and periodic advertising */
if (CONFIG_BT_CTLR_ADV_AUX_SYNC_OFFSET > 0U) { if (false) {
#if defined(CONFIG_BT_CTLR_ADV_AUX_SYNC_OFFSET)
} else if (CONFIG_BT_CTLR_ADV_AUX_SYNC_OFFSET > 0U) {
ticks_slot_overhead = MAX(ticks_slot_aux, ticks_slot_sync); ticks_slot_overhead = MAX(ticks_slot_aux, ticks_slot_sync);
#endif /* CONFIG_BT_CTLR_ADV_AUX_SYNC_OFFSET */
} else { } else {
ticks_slot_overhead = ticks_slot_aux + ticks_slot_sync; ticks_slot_overhead = ticks_slot_aux + ticks_slot_sync;
} }