summary refs log tree commit diff stats
path: root/hw/scsi/scsi-generic.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-12-04 14:46:44 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-15 12:21:02 +0100
commit4be34d1e2140b6d1be611c4bfa542c54c232520b (patch)
tree3a8585d7a6d3f1a0657c68b4cb3179858e07701f /hw/scsi/scsi-generic.c
parent18fc80553420a3188336baeeb542e9f2d1ada13b (diff)
downloadfocaccia-qemu-4be34d1e2140b6d1be611c4bfa542c54c232520b.tar.gz
focaccia-qemu-4be34d1e2140b6d1be611c4bfa542c54c232520b.zip
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>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions