From patchwork Fri Oct 18 14:11:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 3068171 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88A14BF924 for ; Fri, 18 Oct 2013 14:56:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF566202C7 for ; Fri, 18 Oct 2013 14:56:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id ABCD020237 for ; Fri, 18 Oct 2013 14:56:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FC7DE73E6 for ; Fri, 18 Oct 2013 07:56:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 640E6E612D for ; Fri, 18 Oct 2013 07:12:14 -0700 (PDT) Received: by mail-ea0-f182.google.com with SMTP id o10so2050216eaj.27 for ; Fri, 18 Oct 2013 07:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=3q4qnX7otvInaqwnWyR4eEnaQNAC9ooHE+rJD0KfF+w=; b=Px9LQdg+MV9DOkqwb+HxvWtiH9+Jx6hEgsK6zOcO37xag6Mdaqo9lv38KfCmadBMLf vD43ivenT+atHlIn8YGaJL9F1tjdqc8WTCJnlsiyxJmukFo3PXmVMvpJ3WsYy7Ha14uT DfZfhSiY3TOqjeiQfoS/aDn2RcRo2Rq+tSZilwsl/kxHGbO4NARrkp812dB5xfkpwyAf DaGGMY4+Vp4Zx3Z/Z4rxSoC3rysdpj56jYCDPYqL5RyZY8mGxGpqyodG60rwel0+NBXH 6DcjlBf/miJsOrSqwQ1vtY4R7SmtQXOG4ctvKioohIX0MHmoeG7U3sVzfW/vw8Lu4RtC +a2g== X-Received: by 10.14.174.131 with SMTP id x3mr4815846eel.25.1382105533654; Fri, 18 Oct 2013 07:12:13 -0700 (PDT) Received: from localhost (122.Red-83-45-5.dynamicIP.rima-tde.net. [83.45.5.122]) by mx.google.com with ESMTPSA id b42sm4988933eem.9.2013.10.18.07.12.11 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 07:12:12 -0700 (PDT) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" To: dri-devel@lists.freedesktop.org Subject: [PATCH 6/7] drm/qxl: remove unnecessary check Date: Fri, 18 Oct 2013 16:11:32 +0200 Message-Id: <1382105493-2152-6-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1382105493-2152-1-git-send-email-marcandre.lureau@redhat.com> References: <1382105493-2152-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Cc: airlied@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All hard-coded resolutions are passing this check. Signed-off-by: Marc-André Lureau --- 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)