1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

Kernel: Use MUST + Vector::try_empend instead of Vector::empend

In preparation for making Vector::empend unavailable during
compilation of the Kernel.
This commit is contained in:
Brian Gianforcaro 2022-01-03 03:25:29 -08:00 committed by Andreas Kling
parent 24066ba5ef
commit 6c66311ade
5 changed files with 10 additions and 10 deletions

View file

@ -119,13 +119,13 @@ UNMAP_AFTER_INIT Vector<PCIInterruptOverrideMetadata> MultiProcessorParser::get_
entry.source_bus_irq,
entry.destination_ioapic_id,
entry.destination_ioapic_intin_pin);
overrides.empend(
MUST(overrides.try_empend(
entry.source_bus_id,
entry.polarity,
entry.trigger_mode,
entry.source_bus_irq,
entry.destination_ioapic_id,
entry.destination_ioapic_intin_pin);
entry.destination_ioapic_intin_pin));
}
}
}