Skip to content

Commit

Permalink
aubuf: remove unneded lock
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jan 8, 2025
1 parent 8fe0a4b commit 72054c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rem/aubuf/aubuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ int aubuf_append_auframe(struct aubuf *ab, struct mbuf *mb,

struct mem_pool_entry *e = mem_pool_borrow(ab->pool);
if (!e) {
mtx_lock(ab->lock);
err = mem_pool_extend(ab->pool, 10);
mtx_unlock(ab->lock);
if (err)
return err;
e = mem_pool_borrow(ab->pool);
Expand Down

0 comments on commit 72054c3

Please sign in to comment.