aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Qiang <liq3ea@163.com>2019-01-19 21:55:56 -0800
committerMax Reitz <mreitz@redhat.com>2019-01-31 00:38:19 +0100
commit08db59e18834ef64b14cc6b401ad4824a3ce82cf (patch)
tree5753c99aaa8644ea031adfb4cbea85dfa7c125b0
parentd339d766d1e52157e487bc412822e60c0a44e692 (diff)
downloadqemu-08db59e18834ef64b14cc6b401ad4824a3ce82cf.zip
qemu-08db59e18834ef64b14cc6b401ad4824a3ce82cf.tar.gz
qemu-08db59e18834ef64b14cc6b401ad4824a3ce82cf.tar.bz2
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>
-rw-r--r--hw/block/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 7c8c63e..f206391 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,