From c1cb5ea5402142ccf42b539949698ee3297bbe56 Mon Sep 17 00:00:00 2001 From: Morten Priess Date: Tue, 4 Feb 2020 13:14:51 +0100 Subject: [PATCH] Bluetooth: controller: Remove compiler specific warning Some compilers can't resolve the conditional if/else/else construction in ull_conn event_len_prep function, and fail with an 'uninitialized variables' error. The change has no functional impact. Signed-off-by: Morten Priess --- subsys/bluetooth/controller/ll_sw/ull_conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index 6e27272bbf7..74994fa9be4 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -3136,8 +3136,8 @@ static inline void event_len_prep(struct ll_conn *conn) struct pdu_data_llctrl_length_req *lr; struct pdu_data *pdu_ctrl_tx; struct node_tx *tx; - u16_t rx_time; - u16_t tx_time; + u16_t rx_time = 0; + u16_t tx_time = 0; /* * Using bool instead of u8_t increases code size * in this case.