diff options
author | Neale Ranns <nranns@cisco.com> | 2020-09-15 07:13:46 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-09-15 14:40:10 +0000 |
commit | c71dad4a2dd06aa379ed2ad02df3327622bfea80 (patch) | |
tree | 59bff8a8a13810e5e95af4a65dc9c10cfdea0c42 | |
parent | ddd8c0fe59f838e1fd2f0317d319963951964ab5 (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)
-rw-r--r-- | src/plugins/crypto_sw_scheduler/main.c | 2 |
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, |