From patchwork Fri Feb 21 07:55:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 3694921 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AC6EC9F505 for ; Fri, 21 Feb 2014 07:56:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E03F520145 for ; Fri, 21 Feb 2014 07:56:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9B4792015A for ; Fri, 21 Feb 2014 07:56:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A261FB435; Thu, 20 Feb 2014 23:55:51 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by gabe.freedesktop.org (Postfix) with ESMTP id D2A9EFB423 for ; Thu, 20 Feb 2014 23:55:44 -0800 (PST) Received: by mail-bk0-f54.google.com with SMTP id w10so100398bkz.41 for ; Thu, 20 Feb 2014 23:55:43 -0800 (PST) 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; bh=WKBYsUe4WIyDAtdPieAm1sLc4q86YLErjtbnUzF0d7U=; b=IFM8T481vg/XLEtg8sK9RHWMUeQy5mIFgiA8zIsMO6Zh8W9YoPIdgt207kTyMNxMyS R7BGGIJCnhhB1Lj98dZ98YgVnHwRPzBaiYIoT0jbp/zE2Ci4jOky2lTYwKUCs0oJcG6D jcJjUOgEKhemN7TaaOEoJ5B4a+97YKF3CYKySSfaYGaXtk8MaBwHkU31xJ4xOTZv/eBW yAR6M3Op+MBs79ZJmBHELJF37Xk961I7zXKV/Fs1ERbaDIg65Fe7IaKE05uEFJu76Uyt OAMZ4Lt6L/r2T/GPrJ8bkwSQGkXruM2ECwJ8YVjoQTI0L4sao5LcbURpL8FT5rblyJZq hTXA== X-Received: by 10.204.2.133 with SMTP id 5mr1529421bkj.78.1392969343701; Thu, 20 Feb 2014 23:55:43 -0800 (PST) Received: from localhost (port-15573.pppoe.wtnet.de. [84.46.61.18]) by mx.google.com with ESMTPSA id ez13sm6025523bkb.11.2014.02.20.23.55.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Feb 2014 23:55:43 -0800 (PST) From: Thierry Reding To: dri-devel@lists.freedesktop.org Subject: [RFC 08/12] drm/exynos: Remove dead code Date: Fri, 21 Feb 2014 08:55:24 +0100 Message-Id: <1392969328-23133-9-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1392969328-23133-1-git-send-email-thierry.reding@gmail.com> References: <1392969328-23133-1-git-send-email-thierry.reding@gmail.com> 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: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-5.1 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 From: Thierry Reding The Exynos driver always sets DRIVER_GEM, so testing for the absence of the feature will always fail. Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 07a4d0f92722..9230d6f7f964 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -329,11 +329,6 @@ int exynos_drm_gem_map_offset_ioctl(struct drm_device *dev, void *data, DRM_DEBUG_KMS("handle = 0x%x, offset = 0x%lx\n", args->handle, (unsigned long)args->offset); - if (!drm_core_check_feature(dev, DRIVER_GEM)) { - DRM_ERROR("does not support GEM.\n"); - return -ENODEV; - } - return exynos_drm_gem_dumb_map_offset(file_priv, dev, args->handle, &args->offset); } @@ -396,11 +391,6 @@ int exynos_drm_gem_mmap_ioctl(struct drm_device *dev, void *data, struct file *anon_filp; unsigned long addr; - if (!drm_core_check_feature(dev, DRIVER_GEM)) { - DRM_ERROR("does not support GEM.\n"); - return -ENODEV; - } - mutex_lock(&dev->struct_mutex); obj = drm_gem_object_lookup(dev, file_priv, args->handle);