aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-03-04 16:08:24 +0100
committerNeale Ranns <neale@graphiant.com>2022-03-04 15:56:39 +0000
commit82b7991fc28191fd27611c9c948e4aa29f4ca05a (patch)
tree33803992967be5b374b4cdf72a44d45d38d8dad4 /src
parent59183e9e1074e28560718daed09d1dcb07afc877 (diff)
pg: fixing the cli
Type: fix This patch removes the assert and it is unnecessary. Because given variable is used for branch testing. Change-Id: I64f57f909fcba205216296e86c1cde2a5dadbb45 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/pg/cli.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c
index 6715bbde194..ac225094391 100644
--- a/src/vnet/pg/cli.c
+++ b/src/vnet/pg/cli.c
@@ -446,8 +446,6 @@ new_stream (vlib_main_t * vm,
{
vlib_node_t *n;
- ASSERT (s.if_id != ~0);
-
if (s.if_id != ~0)
n = vlib_get_node_by_name (vm, (u8 *) pg_interface_get_input_node (
&pg->interfaces[s.if_id]));