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 <alexis.lescouet@nutanix.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Change-Id: If6570f30844a52113633bdb5f3543eec700f05d7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14391
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
John Levon 2022-09-06 17:04:43 +01:00 committed by Tomasz Zawadzki
parent a8a7edcd52
commit 654738ff45

View File

@ -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);