From c71dad4a2dd06aa379ed2ad02df3327622bfea80 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 15 Sep 2020 07:13:46 +0000 Subject: crypto: Crypto SW Scheduler Coverity Warnings Type: fix Signed-off-by: Neale Ranns Change-Id: I7f98d0c7847ecc40b90b78e5ae83f320575be310 (cherry picked from commit 69f77a3a3cca70876bd27c84b5ae932ca942d8de) --- src/plugins/crypto_sw_scheduler/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/crypto_sw_scheduler') 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, -- cgit 1.2.3-korg