From 7878a59fde3a81680c5602d9f25a58be16d6a776 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sun, 27 Jun 2021 19:25:37 +0000 Subject: [PATCH] intel_extreme: init port_count always (typo fix). --- src/add-ons/accelerants/intel_extreme/accelerant.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/intel_extreme/accelerant.cpp b/src/add-ons/accelerants/intel_extreme/accelerant.cpp index daa5715175..34cea818b1 100644 --- a/src/add-ons/accelerants/intel_extreme/accelerant.cpp +++ b/src/add-ons/accelerants/intel_extreme/accelerant.cpp @@ -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);