mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
conf: check rombar against VIR_DOMAIN_TRISTATE_SWITCH_ABSENT
Make the comparison explicit.
This commit is contained in:
parent
73541fa8ee
commit
5d218156a8
@ -5359,10 +5359,10 @@ virDomainDeviceInfoFormat(virBufferPtr buf,
|
||||
}
|
||||
|
||||
if ((flags & VIR_DOMAIN_DEF_FORMAT_ALLOW_ROM) &&
|
||||
(info->rombar || info->romfile)) {
|
||||
(info->rombar != VIR_TRISTATE_SWITCH_ABSENT || info->romfile)) {
|
||||
|
||||
virBufferAddLit(buf, "<rom");
|
||||
if (info->rombar) {
|
||||
if (info->rombar != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||
const char *rombar = virTristateSwitchTypeToString(info->rombar);
|
||||
|
||||
if (rombar)
|
||||
|
Loading…
x
Reference in New Issue
Block a user