summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-02-11 10:29:13 -0500
committerDamjan Marion <dmarion@me.com>2020-02-11 23:11:58 +0000
commita6ef36b2c25de47824a1b45e147ab2fbf67c3a33 (patch)
tree01f29603e11b22763a1a539db10975171ad29f00 /src/vppinfra/mem.h
parent44476c6b271bdebb7458590398b5f140c9a7d353 (diff)
misc: fix coverity warnings
Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I6b1ea13fc83460bf4ee75cb9249d83dddaa64ded
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r--src/vppinfra/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index f35c495eb25..0f8bd482a90 100644
--- 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];
}