summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_sw_scheduler/main.c
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:40:10 +0000
commitc71dad4a2dd06aa379ed2ad02df3327622bfea80 (patch)
tree59bff8a8a13810e5e95af4a65dc9c10cfdea0c42 /src/plugins/crypto_sw_scheduler/main.c
parentddd8c0fe59f838e1fd2f0317d319963951964ab5 (diff)
crypto: Crypto SW Scheduler Coverity Warnings
Type: fix Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: I7f98d0c7847ecc40b90b78e5ae83f320575be310 (cherry picked from commit 69f77a3a3cca70876bd27c84b5ae932ca942d8de)
Diffstat (limited to 'src/plugins/crypto_sw_scheduler/main.c')
-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,