diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vlib/buffer_funcs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vlib/buffer_funcs.c b/src/vlib/buffer_funcs.c index 80bb30e9f93..f0e2add8457 100644 --- a/src/vlib/buffer_funcs.c +++ b/src/vlib/buffer_funcs.c @@ -261,10 +261,7 @@ vlib_get_frame_queue_elt (vlib_frame_queue_main_t *fqm, u32 index, vlib_frame_queue_t *fq; u64 nelts, tail, new_tail; - if (index >= vec_len (fqm->vlib_frame_queues)) - return 0; - - fq = fqm->vlib_frame_queues[index]; + fq = vec_elt (fqm->vlib_frame_queues, index); ASSERT (fq); nelts = fq->nelts; |