Bluetooth: controller: Fix unused variable compiler warning

Fix unused variable compiler warning with asserts disabled.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-10-28 15:31:03 +05:30 committed by Johan Hedberg
commit f8889c1d87

View file

@ -1639,19 +1639,21 @@ static void ticker_update_conn_op_cb(uint32_t status, void *param)
static void ticker_stop_conn_op_cb(uint32_t status, void *param) static void ticker_stop_conn_op_cb(uint32_t status, void *param)
{ {
void *p;
LL_ASSERT(status == TICKER_STATUS_SUCCESS); LL_ASSERT(status == TICKER_STATUS_SUCCESS);
void *p = ull_update_mark(param); p = ull_update_mark(param);
LL_ASSERT(p == param); LL_ASSERT(p == param);
} }
static void ticker_start_conn_op_cb(uint32_t status, void *param) static void ticker_start_conn_op_cb(uint32_t status, void *param)
{ {
void *p;
LL_ASSERT(status == TICKER_STATUS_SUCCESS); LL_ASSERT(status == TICKER_STATUS_SUCCESS);
void *p = ull_update_unmark(param); p = ull_update_unmark(param);
LL_ASSERT(p == param); LL_ASSERT(p == param);
} }