vlib: coverity woes

Remove logically dead code to keep coverity from complaining

Change-Id: If27d6684d19ab3c8886732a67922c86e5f0b3554
Signed-off-by: Steven Luong <sluong@cisco.com>
This commit is contained in:
Steven Luong
2019-03-05 15:29:22 -08:00
committed by Damjan Marion
parent 77eb28f4d3
commit 951551081b

View File

@ -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;
}