mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
dc0e69aa41
commit
7a481bfa4f
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
|
||||