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: John 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: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
John Levon 2022-03-08 12:45:49 +00:00 committed by Tomasz Zawadzki
parent 8071e0f1dc
commit 9e239b1c1e

View File

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