|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 05/10] mac_{old|new}world: Reduce number of QOM casts |
Date: | Sat, 17 Sep 2022 23:13:12 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 |
On 17/9/22 01:07, BALATON Zoltan wrote:
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> --- hw/ppc/mac_newworld.c | 60 ++++++++++++++++++++----------------------- hw/ppc/mac_oldworld.c | 26 ++++++++----------- 2 files changed, 39 insertions(+), 47 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[Prev in Thread] | Current Thread | [Next in Thread] |