@samitouri / QOSamiQemu / commits / a8a77671b5

hw/char/serial: Remove redundant reset

There is no need to invoke the reset method in realize since the reset framework will do so anyway before the machine starts. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-ID: <20260305220911.131508-11-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Bernhard Beschow committed Mar 5, 2026 at 23:09 UTC a8a77671b5e7f919bc8c7478d51f7b6067b50feb
1 file changed -1
hw/char/serial.c
-1
@@ -934,7 +934,6 @@ static void serial_realize(DeviceState *dev, Error **errp)
934 serial_event, serial_be_change, s, NULL, true);
935 fifo8_create(&s->recv_fifo, UART_FIFO_LENGTH);
936 fifo8_create(&s->xmit_fifo, UART_FIFO_LENGTH);
937 - serial_reset(s);
937 }
938
939 static void serial_unrealize(DeviceState *dev)