summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-02-15 12:11:39 -0800
committerDave Barach <openvpp@barachs.net>2021-02-15 22:15:13 +0000
commiteef15396f69bdb817e9ac2c9b791750be0ce0d4f (patch)
treeee6454cdefffcccd344d6de360450bd5aa5ee415 /src/vnet
parenta0715c412767c31001f3d5d819be466728eed8f6 (diff)
session: coverity fix
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ic28ee0e7cd313686b820e7003a47d17b844b8a89
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 85a802c3a06..b7c1702dcf4 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -228,9 +228,6 @@ session_is_valid (u32 si, u8 thread_index)
s = pool_elt_at_index (session_main.wrk[thread_index].sessions, si);
- if (!s)
- return 1;
-
if (s->thread_index != thread_index || s->session_index != si)
return 0;