aboutsummaryrefslogtreecommitdiff
path: root/host-utils.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-02-03 11:57:23 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-02-07 13:51:37 +0100
commitacc4af3fec335bb0778456f72bfb2c3591c11da4 (patch)
treec2180829712cd178b4fffdb4f06727be8af4aa41 /host-utils.h
parent0815a859492e87e120efa7feaa836ecf6ecffaf7 (diff)
downloadqemu-acc4af3fec335bb0778456f72bfb2c3591c11da4.zip
qemu-acc4af3fec335bb0778456f72bfb2c3591c11da4.tar.gz
qemu-acc4af3fec335bb0778456f72bfb2c3591c11da4.tar.bz2
qom: clean up/optimize object_dynamic_cast
The interface loop can be performed only on the parent object. It does not need to be done on each interface. Similarly, we can simplify the code by switching early from the implementation object to the parent object. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'host-utils.h')
0 files changed, 0 insertions, 0 deletions