Re: [PATCH v2 6/8] sm501: Use stn_he_p/ldn_he_p instead of switch/case

2020-06-19 Thread Philippe Mathieu-Daudé
On 6/16/20 2:22 AM, BALATON Zoltan wrote: > Instead of open coding op with different sizes using a switch and type > casting it can be written more compactly using stn_he_p/ldn_he_p. > > Suggested-by: Peter Maydell > Signed-off-by: BALATON Zoltan > --- > hw/display/sm501.c | 12 +--- >

[PATCH v2 6/8] sm501: Use stn_he_p/ldn_he_p instead of switch/case

2020-06-15 Thread BALATON Zoltan
Instead of open coding op with different sizes using a switch and type casting it can be written more compactly using stn_he_p/ldn_he_p. Suggested-by: Peter Maydell Signed-off-by: BALATON Zoltan --- hw/display/sm501.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --gi