]> xenbits.xensource.com Git - libvirt.git/commit
qemu: inline code for filling in per-VM NVRAM path
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Feb 2022 14:30:38 +0000 (14:30 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 22 Feb 2022 14:55:58 +0000 (14:55 +0000)
commit08101bde5d3f261abe8ef776f032cf800a6ff449
tree50e13f75c37818356fbd7f50ce6cb2b6c5f5b377
parentdd163b6c98dbdda041489a537fc55835c58e2c99
qemu: inline code for filling in per-VM NVRAM path

Before creating a NVRAM path, the qemuDomainNVRAMPathGenerate
method checks whether the config is using the old style
firmware approach. This check is redundant in one of the two
callers. By inlining the check into the other caller, it makes
it clearer to understand that the NVRAM path filling is done
conditionally.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_firmware.c