From 40c447f843767059be411287e6e845cdcc623ff3 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Fri, 6 Aug 2021 16:57:59 +0800 Subject: [PATCH] nvmf/vfio-user: remove duplicated one line The submission queue doorbell will be cleared to 0 at the end of this function. Change-Id: I0146f3dc208b8ca1d7fec4b2dae1d7395f304444 Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8992 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Ziye Yang Reviewed-by: Thanos Makatos --- 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 31f2ed62a..0a1afbc23 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -677,7 +677,7 @@ asq_setup(struct nvmf_vfio_user_ctrlr *ctrlr) sq = &ctrlr->qp[0]->sq; sq->size = regs->aqa.bits.asqs + 1; sq->prp1 = regs->asq; - sq->head = ctrlr->doorbells[0] = 0; + sq->head = 0; sq->cqid = 0; sq->is_cq = false;