hw/block/nvme: remove unused argument in nvme_ns_init_blk

Removed no longer used aregument NvmeCtrl object in nvme_ns_init_blk().

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
This commit is contained in:
Minwoo Im 2021-01-17 23:53:33 +09:00 committed by Klaus Jensen
parent aa5e55e3b0
commit 337ccd7650

View File

@ -66,7 +66,7 @@ static int nvme_ns_init(NvmeNamespace *ns, Error **errp)
return 0;
}
static int nvme_ns_init_blk(NvmeCtrl *n, NvmeNamespace *ns, Error **errp)
static int nvme_ns_init_blk(NvmeNamespace *ns, Error **errp)
{
bool read_only;
@ -307,7 +307,7 @@ int nvme_ns_setup(NvmeCtrl *n, NvmeNamespace *ns, Error **errp)
return -1;
}
if (nvme_ns_init_blk(n, ns, errp)) {
if (nvme_ns_init_blk(ns, errp)) {
return -1;
}