libvirt/src/cpu
Martin Kletzander 381498796c cpu: Remove pointless check
These two pointers can never be NULL since they are initialised to a reference
of a struct.  This became apparent when commit 210a195394 added a VIR_DEBUG
which used both pointers because due to the concise condition the compiler saw
that if the "and" part of the condition did short-circuit (and it assumed that
can happen) the second variable would not be initialised, but it is used in the
debugging message, so the build failed with:

  In file included from ../src/cpu/cpu_x86.c:27:
  ../src/cpu/cpu_x86.c: In function ‘virCPUx86DataIsIdentical’:
  ../src/util/virlog.h:79:5: error: ‘bdata’ may be used uninitialized in this
  function [-Werror=maybe-uninitialized]

Fix this by just assigning the helper pointers and remove the condition
altogether.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2022-04-27 09:42:59 +02:00
..
cpu_arm_data.h cpu: Introduce virCPUarmData and related struts 2020-05-15 12:04:24 +02:00
cpu_arm.c cpu_arm: Implement virCPUDataNewCopy for arm 2021-11-05 17:12:25 +01:00
cpu_arm.h src/cpu: use #pragma once in headers 2019-06-13 17:05:09 +02:00
cpu_map.c cpu_map: Remove unnecessary variable in loadData 2020-09-11 15:33:55 +02:00
cpu_map.h src/cpu: use #pragma once in headers 2019-06-13 17:05:09 +02:00
cpu_ppc64_data.h src/cpu: use #pragma once in headers 2019-06-13 17:05:09 +02:00
cpu_ppc64.c cpu_ppc64.c: remove 'guest' param from ppc64Compute() 2021-11-19 13:32:59 -03:00
cpu_ppc64.h src/cpu: use #pragma once in headers 2019-06-13 17:05:09 +02:00
cpu_s390.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
cpu_s390.h src/cpu: use #pragma once in headers 2019-06-13 17:05:09 +02:00
cpu_x86_data.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
cpu_x86.c cpu: Remove pointless check 2022-04-27 09:42:59 +02:00
cpu_x86.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
cpu.c cpu_x86: Add virCPUDataGetHost 2021-11-05 17:12:25 +01:00
cpu.h cpu_x86: Add virCPUDataGetHost 2021-11-05 17:12:25 +01:00
meson.build meson: src: build libvirt.so library 2020-08-03 09:27:04 +02:00