From patchwork Wed Aug 14 13:07:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2844486 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 D9D98BF546 for ; Wed, 14 Aug 2013 13:10:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEE93203B6 for ; Wed, 14 Aug 2013 13:10:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AB9CF203AC for ; Wed, 14 Aug 2013 13:10:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AFF7543A71 for ; Wed, 14 Aug 2013 06:10:35 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 15BF3E669A for ; Wed, 14 Aug 2013 06:07:42 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so4766488eek.23 for ; Wed, 14 Aug 2013 06:07:42 -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; bh=KppVMztlNPZ7oauEHWDqrBDNLntoSqT2ZRDEIyhNBXY=; b=Vr7BivH8htjWLXPMdi7HjfG+KETDUUvd8rZADkMw8KlKL81pJSLWcciUGtB9CuCBM7 w+nvizYov1YYsMEhF+oOdyKDI29b75rr288KJtg9Dz6a5EzVducqNaaADIOnpGNANCMa ltrZtJp+GE5+IFXLEBR/8aMSRdWmlEiSEZDf161x+4ocqa5sepBYJ0lSvO9U2eQyWHnT PIznLkQUI/+DrOjvaXsaIkUwTDJLPWTLmHWup4wMsZUrrE/oQCs/rIcxEOodHU25NdSF wJI4UyZNRi0zJ2NdYFMA/chL3HpZBCctGz9Sh8DQ92japsVoUAfxqRHdxm3xVSRb4cFi Nxng== X-Received: by 10.14.149.3 with SMTP id w3mr929553eej.84.1376485662284; Wed, 14 Aug 2013 06:07:42 -0700 (PDT) Received: from localhost.localdomain (stgt-5f719d8b.pool.mediaWays.net. [95.113.157.139]) by mx.google.com with ESMTPSA id bn13sm75030115eeb.11.2013.08.14.06.07.40 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:07:41 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/7] drm/cirrus: remove unused driver_private access Date: Wed, 14 Aug 2013 15:07:16 +0200 Message-Id: <1376485640-711-4-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1376485640-711-1-git-send-email-dh.herrmann@gmail.com> References: <1376485640-711-1-git-send-email-dh.herrmann@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+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=-6.9 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 gem_bo->driver_private is never read by cirrus nor DRM core. No need to set it. Besides, drm core clears it during setup, anyway. Cc: Dave Airlie Signed-off-by: David Herrmann --- drivers/gpu/drm/cirrus/cirrus_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_ttm.c index 0047012..bf8a506 100644 --- a/drivers/gpu/drm/cirrus/cirrus_ttm.c +++ b/drivers/gpu/drm/cirrus/cirrus_ttm.c @@ -326,7 +326,6 @@ int cirrus_bo_create(struct drm_device *dev, int size, int align, return ret; } - cirrusbo->gem.driver_private = NULL; cirrusbo->bo.bdev = &cirrus->ttm.bdev; cirrus_ttm_placement(cirrusbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);