]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Change control flow in virCPUUpdateLive
authorJiri Denemark <jdenemar@redhat.com>
Mon, 9 Mar 2020 09:30:39 +0000 (10:30 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Mar 2020 21:53:53 +0000 (22:53 +0100)
commit68c0b85ecb07c8cefcf4f4a2ffc28e123baa9e8c
treea273047dc8adce3460df52e9c29cd3c9f254e238
parent7864380b190351f7abe439af2c6b96029b94744c
cpu: Change control flow in virCPUUpdateLive

The updateLive CPU sub-driver function is supposed to be called only for
a subset of CPU definitions. Let's make it more obvious by turning a
negative test and return into a positive check.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu.c