qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v2 1/3] nvme: use TYPE_NVME instead of constant stri


From: Li Qiang
Subject: [Qemu-block] [PATCH v2 1/3] nvme: use TYPE_NVME instead of constant string
Date: Fri, 11 Jan 2019 10:08:47 +0800

Signed-off-by: Li Qiang <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
---
 hw/block/nvme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 7c8c63e8f5..f206391e8e 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -1381,7 +1381,7 @@ static void nvme_instance_init(Object *obj)
 }
 
 static const TypeInfo nvme_info = {
-    .name          = "nvme",
+    .name          = TYPE_NVME,
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(NvmeCtrl),
     .class_init    = nvme_class_init,
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]