diff options
author | Thomas Huth <thuth@redhat.com> | 2015-10-08 21:35:13 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-10-23 10:38:11 +1100 |
commit | a23dec105c0faed7b9cba5d07d92df63a04dbb2e (patch) | |
tree | 15a3dbba045e26e442e201735db2c48d32c29d5e /hw | |
parent | 185181f8835b1b68409ac4381688eafdca0172cc (diff) | |
download | qemu-a23dec105c0faed7b9cba5d07d92df63a04dbb2e.tar.gz qemu-a23dec105c0faed7b9cba5d07d92df63a04dbb2e.tar.bz2 qemu-a23dec105c0faed7b9cba5d07d92df63a04dbb2e.zip |
hw/scsi/spapr_vscsi: Remove superfluous memset
g_malloc0 already clears the memory, so no need for
the additional memset here.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/scsi/spapr_vscsi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index 891424fae9..f4f5140a4a 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -750,7 +750,6 @@ static void vscsi_report_luns(VSCSIState *s, vscsi_req *req) len = n+8; resp_data = g_malloc0(len); - memset(resp_data, 0, len); stl_be_p(resp_data, n); i = found_lun0 ? 8 : 16; QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { |