aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;