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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Friday in 2020, Jiri Denemark wrote:
Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
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@xxxxxxxxxx>

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;

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux