Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
77eb28f
)
vlib: coverity woes
42/18042/2
author
Steven Luong
<sluong@cisco.com>
Tue, 5 Mar 2019 23:29:22 +0000
(15:29 -0800)
committer
Damjan Marion
<dmarion@me.com>
Wed, 6 Mar 2019 11:35:00 +0000
(11:35 +0000)
Remove logically dead code to keep coverity from complaining
Change-Id: If27d6684d19ab3c8886732a67922c86e5f0b3554
Signed-off-by: Steven Luong <sluong@cisco.com>
src/vlib/buffer.c
patch
|
blob
|
history
diff --git
a/src/vlib/buffer.c
b/src/vlib/buffer.c
index
0e972ca
..
3b0b5d7
100644
(file)
--- 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;
}