Commit 9e239b1c authored by John Levon's avatar John Levon Committed by Tomasz Zawadzki
Browse files

lib/nvme: remove needless check



nvme_pcie_qpair_update_mmio_required() is only called for QPs with
shadow doorbells enabled, so we don't need an additional branch here.

Signed-off-by: default avatarJohn Levon <john.levon@nutanix.com>
Change-Id: Idf65f92deb0c6f93019892ef5a02bc28ba4c0f8c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11843


Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 8071e0f1
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -249,10 +249,6 @@ nvme_pcie_qpair_update_mmio_required(uint16_t value,
{
	uint16_t old;

	if (!shadow_db) {
		return true;
	}

	spdk_wmb();

	old = *shadow_db;