]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: eliminate duplicated code in qemuBuildDriveDevStr()
authorLaine Stump <laine@laine.org>
Thu, 30 Apr 2015 16:51:51 +0000 (12:51 -0400)
committerLaine Stump <laine@laine.org>
Mon, 11 May 2015 20:56:26 +0000 (16:56 -0400)
commite27c5c8fcb290abf89beebeadc541b81977ad839
treed022590c6090f696b6c68882ff23d3c2fa04f7d7
parentda558e72c4999d21d279ff2ab15f0b2446436c46
qemu: eliminate duplicated code in qemuBuildDriveDevStr()

The code to add device type to the commandline was identical for lsi
and other models of SCSI controllers, but was duplicated (with the
exception of a minor ordering difference of the if-else clauses) for
the two cases. This patch replaces those two with a single instance of
the code just before the if().
src/qemu/qemu_command.c