Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
misc: fix coverity warnings
[vpp.git]
/
src
/
vppinfra
/
mem.h
diff --git
a/src/vppinfra/mem.h
b/src/vppinfra/mem.h
index
f35c495
..
0f8bd48
100644
(file)
--- a/
src/vppinfra/mem.h
+++ b/
src/vppinfra/mem.h
@@
-84,7
+84,7
@@
clib_mem_set_per_cpu_heap (u8 * new_heap)
always_inline void *
clib_mem_get_per_numa_heap (u32 numa_id)
{
- ASSERT (numa_id
>= 0 && numa_id
< ARRAY_LEN (clib_per_numa_mheaps));
+ ASSERT (numa_id < ARRAY_LEN (clib_per_numa_mheaps));
return clib_per_numa_mheaps[numa_id];
}