porting: Fix ble_npl_eventq_is_empty return value

This commit is contained in:
Andrzej Kaczmarek
2018-05-23 12:24:07 +02:00
parent ecfd220fc9
commit 7ba4796846
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ void *ble_npl_event_get_arg(struct ble_npl_event *ev);
void ble_npl_event_set_arg(struct ble_npl_event *ev, void *arg);
int ble_npl_eventq_is_empty(struct ble_npl_eventq *evq);
bool ble_npl_eventq_is_empty(struct ble_npl_eventq *evq);
/*
* Mutexes
@@ -128,7 +128,7 @@ ble_npl_eventq_run(struct ble_npl_eventq *evq)
ev->fn(ev);
}
static inline int
static inline bool
ble_npl_eventq_is_empty(struct ble_npl_eventq *evq)
{
return xQueueIsQueueEmptyFromISR(evq->q);
@@ -115,7 +115,7 @@ ble_npl_eventq_run(struct ble_npl_eventq *evq)
os_eventq_run(&evq->evq);
}
static inline int
static inline bool
ble_npl_eventq_is_empty(struct ble_npl_eventq *evq)
{
return STAILQ_EMPTY(&evq->evq.evq_list);