]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_firmware: Drop 'nvram' local variable
authorAndrea Bolognani <abologna@redhat.com>
Sun, 28 Dec 2025 17:31:38 +0000 (18:31 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 8 Jan 2026 22:54:18 +0000 (23:54 +0100)
commitaaa0db64b4e5d44d7bb8aeee9c7b71a4f277a675
tree5a516ec9b01d9a305765030705583069ca79bf0d
parent3f7eea0e17a4db70820c256af9705731a9a54672
qemu_firmware: Drop 'nvram' local variable

We access the NVRAM information via the 'loader' local variable
throughout the file, and this is the only spot where the 'nvram'
local variable exists. It makes things inconsistent and opens up
the possibility of the values for 'loader' and 'nvram' going out
of sync, especially after a future commit will introduce the
need to set the former. Just get rid of the additional variable.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_firmware.c