On Thu, May 24, 2018 at 05:22:07PM +0200, Peter Krempa wrote:
Rather than a lot of checks use a switch statement. This optimizes the code as if one device is matched the rest will certainly not match.Signed-off-by: Peter Krempa <[email protected]> --- src/qemu/qemu_domain.c | 77 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 25 deletions(-)
Reviewed-by: Ján Tomko <[email protected]> Jano
signature.asc
Description: Digital signature
-- libvir-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvir-list
