Skip to content

Commit 210844d

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Drop unnecessary check in amdgpu_connector_add_common_modes()
[Why] amdgpu_connector_add_common_modes() has a check for the width and height of common modes being too small, but the array of common_modes[] has fixed values. The check is dead code. [How] Drop unnecessary check. Cc: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Link: https://lore.kernel.org/r/20250924161624.1975819-3-mario.limonciello@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 0fb915d commit 210844d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ static void amdgpu_connector_add_common_modes(struct drm_encoder *encoder,
434434
common_modes[i].h == native_mode->vdisplay))
435435
continue;
436436
}
437-
if (common_modes[i].w < 320 || common_modes[i].h < 200)
438-
continue;
439437

440438
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
441439
if (!mode)

0 commit comments

Comments
 (0)