Re: [PATCH 05/10] mac_{old|new}world: Reduce number of QOM casts

2022-09-25 Thread Mark Cave-Ayland
On 17/09/2022 00: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 --- hw/ppc/mac_newworld.c | 60 ---

Re: [PATCH 05/10] mac_{old|new}world: Reduce number of QOM casts

2022-09-17 Thread Philippe Mathieu-Daudé via
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 --- hw/ppc/mac_newworld.c | 60 --- h

[PATCH 05/10] mac_{old|new}world: Reduce number of QOM casts

2022-09-16 Thread BALATON Zoltan
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 --- hw/ppc/mac_newworld.c | 60 --- hw/ppc/mac_oldworld.c | 26 --