From 9aea50f52f8d2313ba43934ddef790e691544749 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 12 May 2022 05:32:48 +0000 Subject: [PATCH] dp_configcaps: Avoid querying bus if both bLinkActive and bLinkReady is NULL Doesn't fix a crash -- but avoids redundant work due to a copy paste error. Closes #56 --- src/common/displayport/src/dp_configcaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/displayport/src/dp_configcaps.cpp b/src/common/displayport/src/dp_configcaps.cpp index 8ec82b277..6bc038caf 100644 --- a/src/common/displayport/src/dp_configcaps.cpp +++ b/src/common/displayport/src/dp_configcaps.cpp @@ -2863,7 +2863,7 @@ struct DPCDHALImpl : DPCDHAL { NvU8 data = 0; - if (bLinkReady == NULL && bLinkReady == NULL) + if (bLinkActive == NULL && bLinkReady == NULL) return false; if (AuxRetry::ack != bus.read(NV_DPCD20_PCON_HDMI_TX_LINK_STATUS, &data, sizeof(data)))