]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Simplify modelName stringification
authorAndrea Bolognani <abologna@redhat.com>
Mon, 12 Feb 2018 17:55:04 +0000 (18:55 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 20 Feb 2018 12:57:49 +0000 (13:57 +0100)
commitcbd1eba8b7b22dafe1dd57f6825dfd06aef072e1
treeadeee0841763caec6d62d0c5f456969b5b928a00
parent35e9c02cbe2cedf0f4ff0b9132e35c45550c0f3c
qemu: Simplify modelName stringification

There's no need to perform checks before conversion, we can just
call virDomainControllerPCIModelNameTypeToString() and check the
results later on.

Since the variables involved are only used for PCI controllers,
we can declare them in the 'case' scope rather than in the
function scope to make everything a bit nicer while at it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_command.c