summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vlib/buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c
index 0e972caadc9..3b0b5d78349 100644
--- a/src/vlib/buffer.c
+++ b/src/vlib/buffer.c
@@ -746,8 +746,7 @@ buffer_get_by_index (vlib_buffer_main_t * bm, u32 index)
if (!bm->buffer_pools || vec_len (bm->buffer_pools) < index)
return 0;
bp = vec_elt_at_index (bm->buffer_pools, index);
- if (!bp)
- return 0;
+
return bp;
}