OSDN Git Service

nvme: use TYPE_NVME instead of constant string
authorLi Qiang <liq3ea@163.com>
Sun, 20 Jan 2019 05:55:56 +0000 (21:55 -0800)
committerMax Reitz <mreitz@redhat.com>
Wed, 30 Jan 2019 23:38:19 +0000 (00:38 +0100)
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>
hw/block/nvme.c

index 7c8c63e..f206391 100644 (file)
@@ -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,