]> xenbits.xensource.com Git - libvirt.git/commit
conf: Change return value of some CPU feature APIs
authorJiri Denemark <jdenemar@redhat.com>
Thu, 25 Apr 2024 13:35:06 +0000 (15:35 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 2 May 2024 17:56:45 +0000 (19:56 +0200)
commit8c1b07b088dbc1a0e99c0b2e6f5133342a9b3c81
tree039813b03889e507619ed4d018d882aed7a10996
parent23c47944882bca4b0684ff9b4cf71f7e44235eba
conf: Change return value of some CPU feature APIs

The virCPUDefAddFeatureInternal helper function only fails if it is
called with VIR_CPU_ADD_FEATURE_MODE_EXCLUSIVE, which is only used in
virCPUDefAddFeature. The other callers (virCPUDefUpdateFeature and
virCPUDefAddFeatureIfMissing) will never get anything but 0 from
virCPUDefAddFeatureInternal and their return type can be changed to
void.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/cpu/cpu_s390.c
src/cpu/cpu_x86.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_domain.c