summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorMinwoo Im2021-01-17 15:53:31 +0100
committerKlaus Jensen2021-02-08 21:15:53 +0100
commit1490be5a8a278c17bceffa0be1dbd21dcb2f9bee (patch)
treebefc994b2c943dd50c066c1c6e0b850a45188c40 /hw/block
parenthw/block/nvme: Correct error status for unaligned ZA (diff)
downloadqemu-1490be5a8a278c17bceffa0be1dbd21dcb2f9bee.tar.gz
qemu-1490be5a8a278c17bceffa0be1dbd21dcb2f9bee.tar.xz
qemu-1490be5a8a278c17bceffa0be1dbd21dcb2f9bee.zip
hw/block/nvme: remove unused argument in nvme_ns_init_zoned
nvme_ns_init_zoned() has no use for given NvmeCtrl object. Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/nvme-ns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/nvme-ns.c b/hw/block/nvme-ns.c
index 9be170abb7..d35c2925ec 100644
--- a/hw/block/nvme-ns.c
+++ b/hw/block/nvme-ns.c
@@ -205,7 +205,7 @@ static void nvme_ns_zoned_init_state(NvmeNamespace *ns)
}
}
-static void nvme_ns_init_zoned(NvmeCtrl *n, NvmeNamespace *ns, int lba_index)
+static void nvme_ns_init_zoned(NvmeNamespace *ns, int lba_index)
{
NvmeIdNsZoned *id_ns_z;
@@ -322,7 +322,7 @@ int nvme_ns_setup(NvmeCtrl *n, NvmeNamespace *ns, Error **errp)
if (nvme_ns_zoned_check_calc_geometry(ns, errp) != 0) {
return -1;
}
- nvme_ns_init_zoned(n, ns, 0);
+ nvme_ns_init_zoned(ns, 0);
}
if (nvme_register_namespace(n, ns, errp)) {