Merge branch 'component_bt/osi_fixed_queue_v3.1' into 'release/v3.1'

component_bt/: Fix pointer type in fixed_queue v3.1

See merge request espressif/esp-idf!6849
This commit is contained in:
Jiang Jiang Jian 2019-12-12 12:15:44 +08:00
commit 612a25f50c

View File

@ -189,7 +189,7 @@ void *fixed_queue_try_dequeue(fixed_queue_t *queue)
return NULL;
}
if (osi_sem_take(queue->dequeue_sem, 0) != 0) {
if (osi_sem_take(&queue->dequeue_sem, 0) != 0) {
return NULL;
}
@ -243,14 +243,14 @@ void *fixed_queue_try_remove_from_queue(fixed_queue_t *queue, void *data)
osi_mutex_lock(&queue->lock, OSI_MUTEX_MAX_TIMEOUT);
if (list_contains(queue->list, data) &&
osi_sem_take(queue->dequeue_sem, 0) == 0) {
osi_sem_take(&queue->dequeue_sem, 0) == 0) {
removed = list_remove(queue->list, data);
assert(removed);
}
osi_mutex_unlock(&queue->lock);
if (removed) {
osi_sem_give(queue->enqueue_sem);
osi_sem_give(&queue->enqueue_sem);
return data;
}