aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosip Pavic <[email protected]>2022-07-29 11:08:09 -0400
committerAlex Deucher <[email protected]>2022-08-16 18:07:54 -0400
commitc7dafdfa90f708b6e4630abf824ba388a3947400 (patch)
treef813419e9db28179079f5c43c8c8f673577d5640
parent5c1943820156e9a120faba320a72578578a69ab8 (diff)
drm/amd/display: do not compare integers of different widths
[Why & How] Increase width of some variables to avoid comparing integers of different widths. Reviewed-by: Alvin Lee <[email protected]> Acked-by: Brian Chang <[email protected]> Signed-off-by: Josip Pavic <[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_hwseq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
index 4aecbf230446..ebd3945c71f1 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
@@ -331,7 +331,8 @@ static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *c
bool dcn32_apply_idle_power_optimizations(struct dc *dc, bool enable)
{
union dmub_rb_cmd cmd;
- uint8_t ways, i, j;
+ uint8_t ways, i;
+ int j;
bool stereo_in_use = false;
struct dc_plane_state *plane = NULL;