diff options
Diffstat (limited to 'hw/char/omap_uart.c')
-rw-r--r-- | hw/char/omap_uart.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/char/omap_uart.c b/hw/char/omap_uart.c index 88f2094..278ce36 100644 --- a/hw/char/omap_uart.c +++ b/hw/char/omap_uart.c @@ -55,8 +55,7 @@ struct omap_uart_s *omap_uart_init(hwaddr base, qemu_irq txdma, qemu_irq rxdma, const char *label, CharDriverState *chr) { - struct omap_uart_s *s = (struct omap_uart_s *) - g_malloc0(sizeof(struct omap_uart_s)); + struct omap_uart_s *s = g_new0(struct omap_uart_s, 1); s->base = base; s->fclk = fclk; |