Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a40a60d9 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie
Browse files

drm/qxl: remove unnecessary check



All hard-coded resolutions are passing this check.

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent b0807423
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -170,9 +170,6 @@ static int qxl_add_common_modes(struct drm_connector *connector,
	};

	for (i = 0; i < ARRAY_SIZE(common_modes); i++) {
		if (common_modes[i].w < 320 || common_modes[i].h < 200)
			continue;

		mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h,
				    60, false, false, false);
		if (common_modes[i].w == pwidth && common_modes[i].h == pheight)