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:
Jan Beulich committed 2026-04-16 10:29:14 +02:00
1 parent 2d670d258b
commit 3ba01239bf
1 file changed
+3 -3
+3 -3
View File
@@ -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 )
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.