]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: use g_strdup instead of VIR_STRDUP
authorJán Tomko <jtomko@redhat.com>
Sun, 20 Oct 2019 11:49:46 +0000 (13:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:56 +0000 (12:51 +0200)
commitdf753c85dbb3cebdb231a15126ac0938513ec04d
treed0ac41e699b6ef7a5ef21b9450709deb34dfeb05
parent17561eb362b2da0dae7a4bcd1bebb4b9c876b799
cpu: use g_strdup instead of VIR_STRDUP

Replace all occurrences of
  if (VIR_STRDUP(a, b) < 0)
     /* effectively dead code */
with:
  a = g_strdup(b);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/cpu/cpu_arm.c
src/cpu/cpu_ppc64.c
src/cpu/cpu_x86.c