Introduced BLE_LL_ASSERT instead of void return on callout handle being NULL

This commit is contained in:
Roshan Bangar
2023-06-07 12:59:01 +05:30
committed by Abhinav Kudnar
parent 4012844c28
commit be1f0e7fb2
+2 -4
View File
@@ -787,12 +787,10 @@ IRAM_ATTR npl_freertos_callout_deinit(struct ble_npl_callout *co)
/* Since we dynamically deinit timers, function can be called for NULL timers. Return for such scenarios */
if (!callout) {
return;
}
if (!callout->handle) {
return;
}
BLE_LL_ASSERT(callout->handle);
ble_npl_event_deinit(&callout->ev);
#if CONFIG_BT_NIMBLE_USE_ESP_TIMER
if(esp_timer_stop(callout->handle))