summaryrefslogtreecommitdiffstats
path: root/hw/char
diff options
context:
space:
mode:
authorLaurent Vivier2020-10-09 13:38:42 +0200
committerLaurent Vivier2020-10-13 13:33:46 +0200
commit9aa2c49eb76838618f1eabd04a688ad2a44c24e5 (patch)
tree803b7806b0c2a5bfe31d4dc4a79a5806429f69cc /hw/char
parentblock/blkdebug: fix memory leak (diff)
downloadqemu-9aa2c49eb76838618f1eabd04a688ad2a44c24e5.tar.gz
qemu-9aa2c49eb76838618f1eabd04a688ad2a44c24e5.tar.xz
qemu-9aa2c49eb76838618f1eabd04a688ad2a44c24e5.zip
hw/char/serial: remove duplicate .class_init in serial_mm_info
.class_init is already set to serial_mm_class_init. Remove the duplicate entry. Fixes: 17fd1a6490b1 ("serial-mm: add "regshift" property") Cc: marcandre.lureau@redhat.com Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20201009113843.60995-1-lvivier@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/char')
-rw-r--r--hw/char/serial.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/char/serial.c b/hw/char/serial.c
index 4386adabd4..97f71879ff 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -1120,7 +1120,6 @@ static const TypeInfo serial_mm_info = {
.class_init = serial_mm_class_init,
.instance_init = serial_mm_instance_init,
.instance_size = sizeof(SerialMM),
- .class_init = serial_mm_class_init,
};
static void serial_register_types(void)