mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
VT-d: avoid multi-message-MSI check for HPET
Having this immediately below a PCI-dev vs HPET conditional is (mildly) confusing. Move that if() into the body of the earlier one. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
2d670d258b
commit
3ba01239bf
1 file changed
+3
-3
@@ -513,13 +513,13 @@ static int msi_msg_to_remap_entry(
|
||||
|
||||
if ( rc )
|
||||
return rc;
|
||||
|
||||
if ( msi_desc->msi_attrib.type == PCI_CAP_ID_MSI )
|
||||
nr = msi_desc->msi.nvec;
|
||||
}
|
||||
else
|
||||
set_hpet_source_id(msi_desc->hpet_id, &new_ire);
|
||||
|
||||
if ( msi_desc->msi_attrib.type == PCI_CAP_ID_MSI )
|
||||
nr = msi_desc->msi.nvec;
|
||||
|
||||
spin_lock_irqsave(&iommu->intremap.lock, flags);
|
||||
|
||||
if ( msg == NULL )
|
||||
|
||||