]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: domain: Clarify nvram/loader format logic
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 Aug 2024 14:57:55 +0000 (16:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 15 Nov 2024 08:42:04 +0000 (09:42 +0100)
commita448d4a18a378300852d1819b7a072cffe6ca661
tree6ec92223464d7af152e6cb5ce4dae846eb722416
parentd57630c282ae7220d8998f74b7e4fec21841797f
conf: domain: Clarify nvram/loader format logic

Restructure the code to assign first (as this is simpler to refactor in
the future) and avoid mixing implicit value checks with explicit ones by
checking for _NONE.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c