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>
This commit is contained in:
parent
e570768566
commit
eda688ee24
@ -1213,9 +1213,8 @@ static uint16_t nvme_check_zone_state_for_write(NvmeZone *zone)
|
|||||||
return NVME_INTERNAL_DEV_ERROR;
|
return NVME_INTERNAL_DEV_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t nvme_check_zone_write(NvmeCtrl *n, NvmeNamespace *ns,
|
static uint16_t nvme_check_zone_write(NvmeNamespace *ns, NvmeZone *zone,
|
||||||
NvmeZone *zone, uint64_t slba,
|
uint64_t slba, uint32_t nlb)
|
||||||
uint32_t nlb)
|
|
||||||
{
|
{
|
||||||
uint64_t zcap = nvme_zone_wr_boundary(zone);
|
uint64_t zcap = nvme_zone_wr_boundary(zone);
|
||||||
uint16_t status;
|
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);
|
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) {
|
if (status) {
|
||||||
goto invalid;
|
goto invalid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user