summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Jensen2020-12-10 08:11:32 +0100
committerKlaus Jensen2021-02-08 21:15:53 +0100
commit521ea778b264116310182db9c4d329c5aa867c59 (patch)
tree75fac9e515e23b3304af23c72928b27ddf7bd865
parenthw/block/nvme: add missing string representations for commands (diff)
downloadqemu-521ea778b264116310182db9c4d329c5aa867c59.tar.gz
qemu-521ea778b264116310182db9c4d329c5aa867c59.tar.xz
qemu-521ea778b264116310182db9c4d329c5aa867c59.zip
hw/block/nvme: remove unnecessary check for append
nvme_io_cmd already checks if the namespace supports the Zone Append command, so the removed check is dead code. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Tested-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
-rw-r--r--hw/block/nvme.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 7222eff755..c73afdf805 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -1707,10 +1707,6 @@ static uint16_t nvme_do_write(NvmeCtrl *n, NvmeRequest *req, bool append,
}
res->slba = nvme_advance_zone_wp(ns, zone, nlb);
- } else if (append) {
- trace_pci_nvme_err_invalid_opc(rw->opcode);
- status = NVME_INVALID_OPCODE;
- goto invalid;
}
data_offset = nvme_l2b(ns, slba);