aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2021-01-19 22:56:14 +0100
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:57 +0100
commiteda688ee2403c1efc48f420590623c885aec3393 (patch)
treeef36a2290f8d337cad3fea636cee62626a83a911 /hw
parente570768566b36f0a0471f65a40b47a6471ef0e24 (diff)
downloadqemu-eda688ee2403c1efc48f420590623c885aec3393.zip
qemu-eda688ee2403c1efc48f420590623c885aec3393.tar.gz
qemu-eda688ee2403c1efc48f420590623c885aec3393.tar.bz2
hw/block/nvme: remove unused parameter in check zone write
Remove the unused NvmeCtrl parameter in nvme_check_zone_write. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/block/nvme.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 5e0819f..f39be19 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -1213,9 +1213,8 @@ static uint16_t nvme_check_zone_state_for_write(NvmeZone *zone)
return NVME_INTERNAL_DEV_ERROR;
}
-static uint16_t nvme_check_zone_write(NvmeCtrl *n, NvmeNamespace *ns,
- NvmeZone *zone, uint64_t slba,
- uint32_t nlb)
+static uint16_t nvme_check_zone_write(NvmeNamespace *ns, NvmeZone *zone,
+ uint64_t slba, uint32_t nlb)
{
uint64_t zcap = nvme_zone_wr_boundary(zone);
uint16_t status;
@@ -1778,7 +1777,7 @@ static uint16_t nvme_do_write(NvmeCtrl *n, NvmeRequest *req, bool append,
res->slba = cpu_to_le64(slba);
}
- status = nvme_check_zone_write(n, ns, zone, slba, nlb);
+ status = nvme_check_zone_write(ns, zone, slba, nlb);
if (status) {
goto invalid;
}