mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
nvme: use TYPE_NVME instead of constant string
Signed-off-by: Li Qiang <liq3ea@163.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190120055558.32984-2-liq3ea@163.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
d339d766d1
commit
08db59e188
1 changed files with 1 additions and 1 deletions
|
@ -1381,7 +1381,7 @@ static void nvme_instance_init(Object *obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo nvme_info = {
|
static const TypeInfo nvme_info = {
|
||||||
.name = "nvme",
|
.name = TYPE_NVME,
|
||||||
.parent = TYPE_PCI_DEVICE,
|
.parent = TYPE_PCI_DEVICE,
|
||||||
.instance_size = sizeof(NvmeCtrl),
|
.instance_size = sizeof(NvmeCtrl),
|
||||||
.class_init = nvme_class_init,
|
.class_init = nvme_class_init,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue