[Qemu-devel] [PATCH v2 1/4] hw/dma/pxa2xx: Remove superfluous memset

2015-10-09 Thread Thomas Huth
g_malloc0 already clears the memory, so no need for the additional memset here. And while we're at it, also convert the g_malloc0 to the preferred g_new0. Signed-off-by: Thomas Huth --- hw/dma/pxa2xx_dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/dma/pxa2xx_dma.c

Re: [Qemu-devel] [PATCH v2 1/4] hw/dma/pxa2xx: Remove superfluous memset

2015-10-09 Thread Eric Blake
On 10/09/2015 09:56 AM, Thomas Huth wrote: > g_malloc0 already clears the memory, so no need for > the additional memset here. And while we're at it, > also convert the g_malloc0 to the preferred g_new0. > > Signed-off-by: Thomas Huth > --- > hw/dma/pxa2xx_dma.c | 3 +-- > 1 file changed, 1 inse