acl-plugin: fix coverity issue 170476 59/7259/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 21 Jun 2017 17:34:02 +0000 (19:34 +0200)
committerChris Luke <chris_luke@comcast.com>
Wed, 21 Jun 2017 18:59:47 +0000 (18:59 +0000)
Remove the unnecessary variable assignment which coverity detected.

Change-Id: I66ac20a8495400ac59192ddb72f16c95f6b4d03c
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/fa_node.c

index bfb2fc1..3c23c80 100644 (file)
@@ -1384,7 +1384,7 @@ acl_fa_session_cleaner_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
                                vlib_frame_t * f)
 {
   acl_main_t *am = &acl_main;
-  u64 now = clib_cpu_time_now ();
+  u64 now;
   f64 cpu_cps = vm->clib_time.clocks_per_second;
   u64 next_expire;
   /* We should check if there are connections to clean up - at least twice a second */
@@ -1453,7 +1453,6 @@ acl_fa_session_cleaner_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
            }
        }
 
-      now = clib_cpu_time_now ();
       switch (event_type)
        {
        case ~0: