intel_extreme: init port_count always (typo fix).

This commit is contained in:
Rudolf Cornelissen 2021-06-27 19:25:37 +00:00
parent 094ea67748
commit 7878a59fde

View File

@ -246,9 +246,10 @@ probe_ports()
bool foundDP = false;
bool foundDDI = false;
gInfo->port_count = 0;
// Display Port
if (!gInfo->shared_info->device_type.HasDDI()) {
gInfo->port_count = 0;
for (int i = INTEL_PORT_A; i <= INTEL_PORT_D; i++) {
TRACE("Probing DisplayPort %d\n", i);
Port* displayPort = new(std::nothrow) DisplayPort((port_index)i);