drm/amd/display: fix a divide by zero error
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 13 Sep 2022 20:21:09 +0000 (16:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:46 +0000 (09:41 -0400)
commit18b85e98e10d9cea5c23b710e78c5f68897fb3a7
treeb0f04a36c56f2f409dd5cd24ee17b9eac4c11ce8
parent047783cdd5f604d87398236beb4971abb4d43293
drm/amd/display: fix a divide by zero error

[Why&How]

Incorrect variable was being checked for zero condition.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c