From patchwork Wed Aug 14 13:07:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2844485 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 B649E9F271 for ; Wed, 14 Aug 2013 13:09:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87CFF205DD for ; Wed, 14 Aug 2013 13:09:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E2C37205E1 for ; Wed, 14 Aug 2013 13:09:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E44C5E5F5E for ; Wed, 14 Aug 2013 06:09:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 61FDDE6778 for ; Wed, 14 Aug 2013 06:07:41 -0700 (PDT) Received: by mail-ea0-f172.google.com with SMTP id r16so4792258ead.17 for ; Wed, 14 Aug 2013 06:07:40 -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=vQ20c9OOs2hSCvMzy9dV1CIYYrFkSInDrv6MCNMMs4Y=; b=iHEaCaAh+1GIUf04ytkmUQJoX7fwGoegOLYBl1D0QmBeFq0bAVv2ls0xYaYdJpWW95 Q2u7X8DygrRXjSCss4ONCH6PncBzAnuj4DoLMIKK35noLDlyynxydPK/XlR/yimphFTH ZHBMxyWsLybO+iFHnxp/R8tOCflKNm2Bj/vboXj9XVEKVywF9vjz+KuqewfJaCyDoyfB s0IxjBPEL6xhr0miggamFZBShfCN2I4npEdG7HXvzNF7cD+JFTJsJak1hjFmpK/Bqgtd 6nDaJMrYWEcIiY9krLiZxwqoNiiJ9gjREgSpYWwzzwhegztSblVlDW0sufqVN87BJA0h Ex9w== X-Received: by 10.14.205.200 with SMTP id j48mr925298eeo.80.1376485660598; Wed, 14 Aug 2013 06:07:40 -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.38 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:07:39 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/7] drm/mgag200: remove unused driver_private access Date: Wed, 14 Aug 2013 15:07:15 +0200 Message-Id: <1376485640-711-3-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 mgag200 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/mgag200/mgag200_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c index 3acb2b0..6cf3fa0 100644 --- a/drivers/gpu/drm/mgag200/mgag200_ttm.c +++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c @@ -321,7 +321,6 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align, return ret; } - mgabo->gem.driver_private = NULL; mgabo->bo.bdev = &mdev->ttm.bdev; mgag200_ttm_placement(mgabo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);