aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamson Tam <[email protected]>2023-03-03 17:30:25 -0500
committerAlex Deucher <[email protected]>2023-03-15 18:45:26 -0400
commit05cff51055c1050bf3a730748db15eb84f34b31d (patch)
treef61a7ee5bd73352a40ca64fee8be6a66c3bd15fe
parentc416a9e4e31eaec5a35417b056a22c73652db544 (diff)
drm/amd/display: fix assert condition
[Why & How] Reversed assert condition when checking that phy_pix_clk[] is not 0 Reviewed-by: Alvin Lee <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Samson Tam <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
index adaf330716c2..47fa51c1d3f4 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
@@ -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];