From 654738ff450d421f973f482c6261e6621750b3a4 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 6 Sep 2022 17:04:43 +0100 Subject: [PATCH] lib/nvmf: small cleanup in vfio_user_qpair_delete_cb() We already define a convenient variable for the admin CQ: use it. Suggested-by: Alexis Lescouet Signed-off-by: John Levon Change-Id: If6570f30844a52113633bdb5f3543eec700f05d7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14391 Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Tested-by: SPDK CI Jenkins --- lib/nvmf/vfio_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index 66e4060e3..3edac02b8 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -2129,7 +2129,7 @@ vfio_user_qpair_delete_cb(void *cb_arg) vfio_user_qpair_delete_cb, cb_arg); } else { - post_completion(vu_ctrlr, vu_ctrlr->cqs[0], 0, 0, + post_completion(vu_ctrlr, admin_cq, 0, 0, ctx->delete_io_sq_cmd.cid, SPDK_NVME_SC_SUCCESS, SPDK_NVME_SCT_GENERIC); free(ctx);