]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: eliminate redundant if clauses in qemuCollectPCIAddress
authorLaine Stump <laine@laine.org>
Tue, 24 Sep 2013 10:49:26 +0000 (06:49 -0400)
committerLaine Stump <laine@laine.org>
Wed, 25 Sep 2013 14:35:49 +0000 (10:35 -0400)
commitfbd9be484c3b1891412e9409d0133a07bbc3fc2b
tree23c52baf428385e5a5b009d43e10656563cfcdd8
parent51e184e9821c3740ac9b52055860d683f27b0ab6
qemu: eliminate redundant if clauses in qemuCollectPCIAddress

Replace them with switch cases. This will make it more efficient when
we add exceptions for more controller types, and other device types.

This is a prerequisite for patches to resolve:

   https://bugzilla.redhat.com/show_bug.cgi?id=1003983
src/qemu/qemu_command.c