diff options
| author | Thomas Huth | 2015-10-09 17:56:38 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2015-11-06 13:42:38 +0100 |
| commit | e9d49d518d5d2b0411ee2625e46662a6065a909c (patch) | |
| tree | 99cc1825086ba0fbe7c373d71a30bb9bebd8f223 /hw/dma | |
| parent | tests/i44fx-test: No need for zeroing memory before memset (diff) | |
| download | qemu-e9d49d518d5d2b0411ee2625e46662a6065a909c.tar.gz qemu-e9d49d518d5d2b0411ee2625e46662a6065a909c.tar.xz qemu-e9d49d518d5d2b0411ee2625e46662a6065a909c.zip | |
linux-user/syscall: Replace g_malloc0 + memcpy with g_memdup
No need to use g_malloc0 to zero the memory if we memcpy to
the whole buffer afterwards anyway. Actually, there is even
a function which combines both steps, g_memdup, so let's use
this function here instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/dma')
0 files changed, 0 insertions, 0 deletions
