Drop useless casts from g_malloc() & friends to pointer
commit0a553c12c71d5627abf223a926ab9688a5573f54
authorMarkus Armbruster <armbru@redhat.com>
Fri, 23 Sep 2022 12:00:24 +0000 (23 14:00 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 22 Oct 2022 21:15:40 +0000 (22 23:15 +0200)
tree95184e811f9e92c0b734e83e2af3a57a80d18536
parent4bb5923605b2b8994f933df23aa948efe7ba545c
Drop useless casts from g_malloc() & friends to pointer

These memory allocation functions return void *, and casting to
another pointer type is useless clutter.  Drop these casts.

If you really want another pointer type, consider g_new().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220923120025.448759-3-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/arm/nseries.c
hw/char/exynos4210_uart.c
hw/display/blizzard.c
hw/misc/cbus.c
hw/nvram/eeprom93xx.c
hw/usb/ccid-card-emulated.c
target/i386/kvm/kvm.c
target/i386/whpx/whpx-all.c
target/s390x/kvm/kvm.c
ui/vnc-enc-hextile.c