OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94c8ff3
)
scsi-disk: qemu_vfree(NULL) is fine, simplify
author
Markus Armbruster
<armbru@redhat.com>
Tue, 15 Jan 2013 13:23:38 +0000
(14:23 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Tue, 15 Jan 2013 15:47:28 +0000
(16:47 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/scsi-disk.c
patch
|
blob
|
history
diff --git
a/hw/scsi-disk.c
b/hw/scsi-disk.c
index
f8d7ef3
..
96db9a7
100644
(file)
--- a/
hw/scsi-disk.c
+++ b/
hw/scsi-disk.c
@@
-85,9
+85,7
@@
static void scsi_free_request(SCSIRequest *req)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
- if (r->iov.iov_base) {
- qemu_vfree(r->iov.iov_base);
- }
+ qemu_vfree(r->iov.iov_base);
}
/* Helper function for command completion with sense. */