Commit 2fd23d46 authored by Josip Pavic's avatar Josip Pavic Committed by Alex Deucher
Browse files

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: default avatarAlvin Lee <Alvin.Lee2@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Acked-by: default avatarQingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: default avatarJosip Pavic <Josip.Pavic@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5ff32b52
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -206,8 +206,7 @@ static bool dcn32_check_no_memory_request_for_cab(struct dc *dc)
 */
 */
static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *ctx)
static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *ctx)
{
{
	uint8_t i;
	int i, j;
	int j;
	struct dc_stream_state *stream = NULL;
	struct dc_stream_state *stream = NULL;
	struct dc_plane_state *plane = NULL;
	struct dc_plane_state *plane = NULL;
	uint32_t cursor_size = 0;
	uint32_t cursor_size = 0;