[core,miniupnpc,modules] Fix not used variables

This commit is contained in:
Jakub Karolczyk
2023-07-04 10:12:44 +01:00
parent b355bf21e6
commit 5656972bfe
16 changed files with 18 additions and 63 deletions

View File

@@ -139,13 +139,10 @@ struct switch_frame_buffer_s {
static switch_frame_t *find_free_frame(switch_frame_buffer_t *fb, switch_frame_t *orig)
{
switch_frame_node_t *np;
int x = 0;
switch_mutex_lock(fb->mutex);
for (np = fb->head; np; np = np->next) {
x++;
if (!np->inuse && ((orig->packet && np->frame->packet) || (!orig->packet && !np->frame->packet))) {
if (np == fb->head) {