From: Andrew Yourtchenko Date: Wed, 21 Jun 2017 17:34:02 +0000 (+0200) Subject: acl-plugin: fix coverity issue 170476 X-Git-Tag: v17.07-rc1~12 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=4393f27ddff96da77cc142477496f01e24b790c5;p=vpp.git acl-plugin: fix coverity issue 170476 Remove the unnecessary variable assignment which coverity detected. Change-Id: I66ac20a8495400ac59192ddb72f16c95f6b4d03c Signed-off-by: Andrew Yourtchenko --- diff --git a/src/plugins/acl/fa_node.c b/src/plugins/acl/fa_node.c index bfb2fc1eaca..3c23c8086e7 100644 --- a/src/plugins/acl/fa_node.c +++ b/src/plugins/acl/fa_node.c @@ -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: