Re: [PATCH v4 18/23] hw/intc/sh_intc: Simplify allocating sources array

2021-10-29 Thread Philippe Mathieu-Daudé
On 10/29/21 13:59, BALATON Zoltan wrote: > On Fri, 29 Oct 2021, Philippe Mathieu-Daudé wrote: >> On 10/28/21 21:27, BALATON Zoltan wrote: >>> Use g_new0 instead of g_malloc0 and avoid some unneeded temporary >>> variable assignments. >>> >>> Signed-off-by: BALATON Zoltan >>> --- >>>  hw/intc/sh_in

Re: [PATCH v4 18/23] hw/intc/sh_intc: Simplify allocating sources array

2021-10-29 Thread BALATON Zoltan
On Fri, 29 Oct 2021, Philippe Mathieu-Daudé wrote: On 10/28/21 21:27, BALATON Zoltan wrote: Use g_new0 instead of g_malloc0 and avoid some unneeded temporary variable assignments. Signed-off-by: BALATON Zoltan --- hw/intc/sh_intc.c | 13 +++-- 1 file changed, 3 insertions(+), 10 delet

Re: [PATCH v4 18/23] hw/intc/sh_intc: Simplify allocating sources array

2021-10-28 Thread Philippe Mathieu-Daudé
On 10/28/21 21:27, BALATON Zoltan wrote: > Use g_new0 instead of g_malloc0 and avoid some unneeded temporary > variable assignments. > > Signed-off-by: BALATON Zoltan > --- > hw/intc/sh_intc.c | 13 +++-- > 1 file changed, 3 insertions(+), 10 deletions(-) > > diff --git a/hw/intc/sh_int

[PATCH v4 18/23] hw/intc/sh_intc: Simplify allocating sources array

2021-10-28 Thread BALATON Zoltan
Use g_new0 instead of g_malloc0 and avoid some unneeded temporary variable assignments. Signed-off-by: BALATON Zoltan --- hw/intc/sh_intc.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/hw/intc/sh_intc.c b/hw/intc/sh_intc.c index eb58707e83..ed0a5f87cc 100644