Skip to content

Commit 4bdacce

Browse files
nits
1 parent c79db00 commit 4bdacce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libudpard/udpard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ static tx_frame_t* tx_frame_new(udpard_tx_t* const tx, const udpard_mem_resource
523523
frame->size = data_size;
524524
// Update the count; this is decremented when the frame is freed upon refcount reaching zero.
525525
tx->enqueued_frames_count++;
526+
UDPARD_ASSERT(tx->enqueued_frames_count <= tx->enqueued_frames_limit);
526527
}
527528
return frame;
528529
}
@@ -1047,7 +1048,6 @@ static void tx_eject_pending(udpard_tx_t* const self, const udpard_us_t now, con
10471048
if (tr == NULL) {
10481049
break; // No pending transfers at the moment. Find something else to do.
10491050
}
1050-
UDPARD_ASSERT(!cavl2_is_inserted(self->index_staged, &tr->index_staged));
10511051
UDPARD_ASSERT(tr->cursor != NULL); // cannot be pending without payload, doesn't make sense
10521052

10531053
// Eject the frame.

0 commit comments

Comments
 (0)