x86/vIO-APIC: fix uninitialized variable warning

In a release build modern gcc validly complains about "pin" possibly
being uninitialized in vioapic_irq_positive_edge().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Jan Beulich committed 2017-04-13 17:35:02 +02:00
1 parent dc0e69aa41
commit 7a481bfa4f
1 file changed
+5 -1
+5 -1
View File
@@ -421,7 +421,11 @@ void vioapic_irq_positive_edge(struct domain *d, unsigned int irq)
struct hvm_vioapic *vioapic = gsi_vioapic(d, irq, &pin);
union vioapic_redir_entry *ent;
ASSERT(vioapic);
if ( !vioapic )
{
ASSERT_UNREACHABLE();
return;
}
HVM_DBG_LOG(DBG_LEVEL_IOAPIC, "irq %x", irq);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.