[PATCH 6/7] drm/qxl: remove unnecessary check
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Oct 18 16:11:32 CEST 2013
All hard-coded resolutions are passing this check.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
drivers/gpu/drm/qxl/qxl_display.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c
index 9f33578..4f28060 100644
--- a/drivers/gpu/drm/qxl/qxl_display.c
+++ b/drivers/gpu/drm/qxl/qxl_display.c
@@ -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)
--
1.8.3.1
More information about the dri-devel
mailing list