summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-09-15 07:13:46 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-09-15 14:39:32 +0000
commit69f77a3a3cca70876bd27c84b5ae932ca942d8de (patch)
treecb640b5cecc7e48ac34caffb3c50f585766d04c4
parent139a6ae0dd460a6b8a5884e65cfd96f0c409f69e (diff)
crypto: Crypto SW Scheduler Coverity Warnings
Type: fix Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: I7f98d0c7847ecc40b90b78e5ae83f320575be310
-rw-r--r--src/plugins/crypto_sw_scheduler/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/crypto_sw_scheduler/main.c b/src/plugins/crypto_sw_scheduler/main.c
index a450bc16e8e..7de84ff1200 100644
--- a/src/plugins/crypto_sw_scheduler/main.c
+++ b/src/plugins/crypto_sw_scheduler/main.c
@@ -543,7 +543,7 @@ sw_scheduler_show_workers (vlib_main_t * vm, unformat_input_t * input,
u32 i;
vlib_cli_output (vm, "%-7s%-20s%-8s", "ID", "Name", "Crypto");
- for (i = vlib_num_workers () >= 0; i < vlib_thread_main.n_vlib_mains; i++)
+ for (i = 1; i < vlib_thread_main.n_vlib_mains; i++)
{
vlib_cli_output (vm, "%-7d%-20s%-8s", vlib_get_worker_index (i),
(vlib_worker_threads + i)->name,