diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index f8bb0d659..01c590526 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -1593,7 +1593,6 @@ post_completion(struct nvmf_vfio_user_ctrlr *ctrlr, struct nvmf_vfio_user_cq *cq uint32_t cdw0, uint16_t sqid, uint16_t cid, uint16_t sc, uint16_t sct) { struct spdk_nvme_status cpl_status = { 0 }; - const struct spdk_nvmf_registers *regs; struct spdk_nvme_cpl *cpl; int err; @@ -1603,14 +1602,6 @@ post_completion(struct nvmf_vfio_user_ctrlr *ctrlr, struct nvmf_vfio_user_cq *cq return 0; } - regs = spdk_nvmf_ctrlr_get_regs(ctrlr->ctrlr); - if (regs->csts.bits.shst != SPDK_NVME_SHST_NORMAL) { - SPDK_DEBUGLOG(nvmf_vfio, - "%s: ignore completion sqid:%d cid=%d status=%#x\n", - ctrlr_id(ctrlr), sqid, cid, sc); - return 0; - } - if (cq_is_full(cq)) { SPDK_ERRLOG("%s: cqid:%d full (tail=%d, head=%d)\n", ctrlr_id(ctrlr), cq->qid, *cq_tailp(cq),