From patchwork Fri Feb 21 07:55:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 3694931 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 65D969F1EE for ; Fri, 21 Feb 2014 07:56:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 94A2B20149 for ; Fri, 21 Feb 2014 07:56:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CFD9A20142 for ; Fri, 21 Feb 2014 07:56:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B51D6FB433; 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-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 549D9FB3E9 for ; Thu, 20 Feb 2014 23:55:46 -0800 (PST) Received: by mail-bk0-f50.google.com with SMTP id d7so942361bkh.37 for ; Thu, 20 Feb 2014 23:55:45 -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=Fo9cFv7OOtQz7Pmm0fh5yimVdGgmqCQxJxZJQyKKg1w=; b=xj+Pfj2hjdJXGN1pOSYNZ2UFpMe2F7WFxp4lVVmhJTvYBai7z+47GtNxV7wBJ8ncZB fjGAGEONImoWhCx5/23pcN4INBfjwZlx6l5f1OHtkS1qCkfhjYXF9VHP2RVUEzJhYLWY BW1XhKx2Ts2KT+kvpS6b9Btd0Ky30d6SMUPF2gBc4IK356FmuIy7EYkaOR4E+VDix7TF 2lMOtsY2w1zXDxtjl3KipVGUR86T0k/HEbdc/MUoCjdOqyhwG6+HCEn3WKfN7gqhdrVr 0kUIO96e6WgZYg5SU5Ef0aZ1BldqP2DGnT5mBS7yykdYpIOULPzVGuIkJ0iOCoqbcWTu GHIA== X-Received: by 10.205.76.199 with SMTP id zf7mr1541299bkb.22.1392969345295; Thu, 20 Feb 2014 23:55:45 -0800 (PST) Received: from localhost (port-15573.pppoe.wtnet.de. [84.46.61.18]) by mx.google.com with ESMTPSA id bh9sm6014913bkb.16.2014.02.20.23.55.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Feb 2014 23:55:44 -0800 (PST) From: Thierry Reding To: dri-devel@lists.freedesktop.org Subject: [RFC 09/12] drm/gma500: Remove dead code Date: Fri, 21 Feb 2014 08:55:25 +0100 Message-Id: <1392969328-23133-10-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 gma500 driver sets DRIVER_GEM unconditionally, so testing for the absence of the feature will always fail. Signed-off-by: Thierry Reding --- drivers/gpu/drm/gma500/gem.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index d8426bc31b09..424dda95fbc6 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c @@ -62,9 +62,6 @@ int psb_gem_dumb_map_gtt(struct drm_file *file, struct drm_device *dev, int ret = 0; struct drm_gem_object *obj; - if (!drm_core_check_feature(dev, DRIVER_GEM)) - return -ENODEV; - mutex_lock(&dev->struct_mutex); /* GEM does all our handle to object mapping */