Skip to content

Commit

Permalink
dp_configcaps: Avoid querying bus if both bLinkActive and bLinkReady …
Browse files Browse the repository at this point in the history
…is NULL

Doesn't fix a crash -- but avoids redundant work due to a copy paste error.

Closes NVIDIA#56
  • Loading branch information
misyltoad authored and aritger committed Aug 2, 2022
1 parent 28d2504 commit 9aea50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/displayport/src/dp_configcaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 9aea50f

Please sign in to comment.