libvirt/src/cpu
Michal Privoznik d3a7479c0b Use more of VIR_XPATH_NODE_AUTORESTORE
This is convenience macro, use it more. This commit was generated
using the following spatch:

  @@
  symbol node;
  identifier old;
  identifier ctxt;
  type xmlNodePtr;
  @@
  - xmlNodePtr old;
  + VIR_XPATH_NODE_AUTORESTORE(ctxt);
    ...
  - old = ctxt->node;
    ... when != old
  - ctxt->node = old;

  @@
  symbol node;
  identifier old;
  identifier ctxt;
  type xmlNodePtr;
  @@
  - xmlNodePtr old = ctxt->node;
  + VIR_XPATH_NODE_AUTORESTORE(ctxt);
    ... when != old
  - ctxt->node = old;

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-06-03 21:06:02 +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.c: modernize virCPUarmUpdate 2020-05-25 12:31:14 +02:00
cpu_arm.h
cpu_map.c Use more of VIR_XPATH_NODE_AUTORESTORE 2020-06-03 21:06:02 +02:00
cpu_map.h
cpu_ppc64_data.h
cpu_ppc64.c cpu/cpu_ppc64.c: remove unneeded label 2020-01-07 16:40:41 +01:00
cpu_ppc64.h
cpu_s390.c cpu_s390.c: modernize virCPUs390Update 2020-05-25 12:31:14 +02:00
cpu_s390.h
cpu_x86_data.h
cpu_x86.c Use more of VIR_XPATH_NODE_AUTORESTORE 2020-06-03 21:06:02 +02:00
cpu_x86.h cpu_conf: Pass policy to CPU feature filtering callbacks 2019-11-12 20:14:15 +01:00
cpu.c cpu: Use g_autoptr and g_autofree in cpu.c 2020-04-07 12:58:07 +02:00
cpu.h cpu: Introduce virCPUarmData and related struts 2020-05-15 12:04:24 +02:00
Makefile.inc.am cpu: Introduce virCPUarmData and related struts 2020-05-15 12:04:24 +02:00