diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-12-04 14:12:44 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-15 12:21:02 +0100 |
commit | 0bd0adbe5b438cabbf02230dba1be4c209158f57 (patch) | |
tree | fd06c939ff9f1b3763fd805f53f471860e76a1cb /page_cache.c | |
parent | 1c3381af327b5f94a10942a3c25777a57fcdd85e (diff) |
scsi: 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>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'page_cache.c')
0 files changed, 0 insertions, 0 deletions