Re: [PATCH 2/4] sm501: Drop unneded variable

2020-06-15 Thread Peter Maydell
On Sat, 6 Jun 2020 at 20:22, BALATON Zoltan wrote: > > We don't need a separate variable to keep track if we allocated memory > that needs to be freed as we can test the pointer itself. > > Signed-off-by: BALATON Zoltan > --- > hw/display/sm501.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

[PATCH 2/4] sm501: Drop unneded variable

2020-06-06 Thread BALATON Zoltan
We don't need a separate variable to keep track if we allocated memory that needs to be freed as we can test the pointer itself. Signed-off-by: BALATON Zoltan --- hw/display/sm501.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/display/sm501.c b/hw/display/sm501.c