iommu/vt-d: Fix return value check of parse_ioapics_under_ir()

The function returns 0 on success, so check for the right
value.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Joerg Roedel 2015-11-02 19:57:31 +09:00
parent 66ef950d18
commit b61e5e80e3
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ static int __init intel_prepare_irq_remapping(void)
if (!dmar_ir_support()) if (!dmar_ir_support())
return -ENODEV; return -ENODEV;
if (!parse_ioapics_under_ir()) { if (parse_ioapics_under_ir()) {
pr_info("Not enabling interrupt remapping\n"); pr_info("Not enabling interrupt remapping\n");
goto error; goto error;
} }