drm/amd/display: Replace ternary operator with min() in 'dm_helpers_parse_edid_caps'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Sun, 13 Aug 2023 08:44:33 +0000 (14:14 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:30 +0000 (18:08 -0400)
commit1347b15d5e8e167f8f29e7bfb26ce04d335430e9
tree7b9c256d1624bf10770029aaf17645d7e0196a92
parent15419813f2ef8b810bf2e11f5b2269acf776cb44
drm/amd/display: Replace ternary operator with min() in 'dm_helpers_parse_edid_caps'

Fixes the following coccicheck:

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:120:41-42: WARNING opportunity for min()

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c