From de7f290830fed921c0d08f4a6e06f4b7fca58c03 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Mon, 1 Feb 2021 12:33:01 +0100 Subject: [PATCH] spdk_top: delete unused variable in show poller function Deletes poller_counter variable as it is used only when constructing ncurses window and always equal to 0. Signed-off-by: Krzysztof Karas Change-Id: Ib837064e1bbbe59984802d3ec96cb4c46dcf8407 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6198 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- app/spdk_top/spdk_top.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/spdk_top/spdk_top.c b/app/spdk_top/spdk_top.c index 5aca30d8dd..fda42158a9 100644 --- a/app/spdk_top/spdk_top.c +++ b/app/spdk_top/spdk_top.c @@ -2167,7 +2167,7 @@ show_poller(uint8_t current_page) { PANEL *poller_panel; WINDOW *poller_win; - uint64_t poller_counter = 0, count = 0; + uint64_t count = 0; uint64_t poller_number = current_page * g_max_data_rows + g_selected_row; struct rpc_poller_info *pollers[RPC_MAX_POLLERS]; bool stop_loop = false; @@ -2179,7 +2179,7 @@ show_poller(uint8_t current_page) prepare_poller_data(current_page, pollers, &count, current_page); poller_win = newwin(POLLER_WIN_HEIGHT, POLLER_WIN_WIDTH, - (g_max_row - poller_counter) / 2, (g_max_col - POLLER_WIN_HOR_POS) / 2); + (g_max_row) / 2, (g_max_col - POLLER_WIN_HOR_POS) / 2); keypad(poller_win, TRUE); poller_panel = new_panel(poller_win);