From 806d4116939800cb594fdfc6704b8405a018f72f Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Mon, 10 Feb 2020 13:44:37 -0700 Subject: [PATCH] nvme/perf: remove extra check_io function. This function was just a wrapper for a one line call. Change-Id: If91338f917a110fda2493da4022c0a18281418ca Signed-off-by: Seth Howell Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/754 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Aleksey Marchuk --- examples/nvme/perf/perf.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index 1268dc1ca..46d6d3f86 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -965,12 +965,6 @@ io_complete(void *ctx, const struct spdk_nvme_cpl *cpl) task_complete(task); } -static void -check_io(struct ns_worker_ctx *ns_ctx) -{ - ns_ctx->entry->fn_table->check_io(ns_ctx); -} - static struct perf_task * allocate_task(struct ns_worker_ctx *ns_ctx, int queue_depth) { @@ -1081,7 +1075,7 @@ work_fn(void *arg) */ ns_ctx = worker->ns_ctx; while (ns_ctx != NULL) { - check_io(ns_ctx); + ns_ctx->entry->fn_table->check_io(ns_ctx); ns_ctx = ns_ctx->next; } @@ -1108,7 +1102,7 @@ work_fn(void *arg) } if (ns_ctx->current_queue_depth > 0) { - check_io(ns_ctx); + ns_ctx->entry->fn_table->check_io(ns_ctx); if (ns_ctx->current_queue_depth == 0) { cleanup_ns_worker_ctx(ns_ctx); } else {