summaryrefslogtreecommitdiffstats
path: root/src/vlib/buffer.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-03-05 15:29:22 -0800
committerDamjan Marion <dmarion@me.com>2019-03-06 11:35:00 +0000
commit951551081b555f37e9eb068876d83ea57621143a (patch)
treeecca5a4d3d3d05b2e721e3a6237a23e5a25ccbd2 /src/vlib/buffer.c
parent77eb28f4d355884e0f6be2f4323ccce3c452dff8 (diff)
vlib: coverity woes
Remove logically dead code to keep coverity from complaining Change-Id: If27d6684d19ab3c8886732a67922c86e5f0b3554 Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src/vlib/buffer.c')
-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;
}