[libvirt PATCH 17/39] cpu_x86: Use g_auto* in x86Decode

Ján Tomko jtomko at redhat.com
Tue Apr 7 10:15:40 UTC 2020


On a Friday in 2020, Jiri Denemark wrote:
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> src/cpu/cpu_x86.c | 26 +++++++++-----------------
> 1 file changed, 9 insertions(+), 17 deletions(-)
>

Both copy and features are unused as of:
commit d8b3dd16cb947cc16c0700c4836367b4fcb15525
     cpu: Move feature expansion out of cpuBaseline

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano

diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 21292fa330..d3318a28da 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -2039,8 +2039,6 @@ x86Decode(virCPUDefPtr cpu,
      virCPUx86ModelPtr model = NULL;
      g_autoptr(virCPUDef) cpuModel = NULL;
      g_auto(virCPUx86Data) data = VIR_CPU_X86_DATA_INIT;
-    g_auto(virCPUx86Data) copy = VIR_CPU_X86_DATA_INIT;
-    g_auto(virCPUx86Data) features = VIR_CPU_X86_DATA_INIT;
      virCPUx86VendorPtr vendor;
      virDomainCapsCPUModelPtr hvModel = NULL;
      g_autofree char *sigs = NULL;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200407/294e5ae9/attachment-0001.sig>


More information about the libvir-list mailing list