drm/amd/display: fix assert condition

[Why & How]
Reversed assert condition when checking that phy_pix_clk[] is not 0

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Samson Tam 2023-03-03 17:30:25 -05:00 committed by Alex Deucher
parent c416a9e4e3
commit 05cff51055

View File

@ -322,7 +322,7 @@ void dcn32_determine_det_override(struct dc *dc,
/* Check for special case with two displays, one with much higher pixel rate */
if (stream_count == 2) {
ASSERT(!phy_pix_clk[0] || !phy_pix_clk[1]);
ASSERT((phy_pix_clk[0] > 0) && (phy_pix_clk[1] > 0));
if (phy_pix_clk[0] < phy_pix_clk[1]) {
lower_mode_stream_index = 0;
phy_pix_clk_mult = phy_pix_clk[1] / phy_pix_clk[0];