x86: Fuse g_malloc(); memset() into g_malloc0()
commit4be34d1e2140b6d1be611c4bfa542c54c232520b
authorMarkus Armbruster <armbru@redhat.com>
Thu, 4 Dec 2014 13:46:44 +0000 (4 14:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 11:21:02 +0000 (15 12:21 +0100)
tree3a8585d7a6d3f1a0657c68b4cb3179858e07701f
parent18fc80553420a3188336baeeb542e9f2d1ada13b
x86: Fuse g_malloc(); memset() into g_malloc0()

Coccinelle semantic patch:

    @@
    expression LHS, SZ;
    @@
    -       LHS = g_malloc(SZ);
    -       memset(LHS, 0, SZ);
    +       LHS = g_malloc0(SZ);

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/arch_dump.c