pg: fixing the cli 49/35549/2
authorMohsin Kazmi <sykazmi@cisco.com>
Fri, 4 Mar 2022 15:08:24 +0000 (16:08 +0100)
committerNeale Ranns <neale@graphiant.com>
Fri, 4 Mar 2022 15:56:39 +0000 (15:56 +0000)
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>
src/vnet/pg/cli.c

index 6715bbd..ac22509 100644 (file)
@@ -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]));