]> www.infradead.org Git - qemu-nvme.git/commit
mac_{old|new}world: Reduce number of QOM casts
authorBALATON Zoltan <balaton@eik.bme.hu>
Fri, 28 Oct 2022 11:56:22 +0000 (13:56 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 31 Oct 2022 18:48:23 +0000 (18:48 +0000)
commit18e0383b5c21df348f9d3a1e4bd12747561535f2
tree368709b372bf2d4e7409480fbda37b0ac91ee8d5
parent50c496d2728b26fa93a99dbdb4c93e619c6afe9d
mac_{old|new}world: Reduce number of QOM casts

By storing the device pointers in a variable with the right type the
number of QOM casts can be reduced which also makes the code more
readable.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <f701e5ae03c806969561a7fd7523ef407db6dc89.1666957578.git.balaton@eik.bme.hu>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c