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
This commit is contained in:
Joshua Ashton 2022-05-12 05:32:48 +00:00 committed by Andy Ritger
parent 28d2504766
commit 9aea50f52f

View File

@ -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)))