From patchwork Fri Nov 9 09:19:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommi Rantala X-Patchwork-Id: 1719781 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 2A8323FCF7 for ; Fri, 9 Nov 2012 09:28:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD90BA0B11 for ; Fri, 9 Nov 2012 01:28:54 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id AA0EDA0B5D for ; Fri, 9 Nov 2012 01:24:31 -0800 (PST) Received: by mail-we0-f177.google.com with SMTP id u50so1600193wey.36 for ; Fri, 09 Nov 2012 01:24:31 -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:x-mailer:in-reply-to:references; bh=Sd/DZU1w2TBNUqCdZM3Nz3skGdK+y+BekP/hDH3hS3k=; b=Lw0xjNzrG1qKfU4lgG1i5XD08/w6OODuBC3a1jL0BQZYunSOoPBxShDjX4kTx2mpR1 2jRnfm0ENbrU2JXWsMCESqn7uhr8tHqUqg20BDBpPLyCevdykToG8ikpFPu47SheDgBK ofuiP5Egdr/j2ZZQ2J4K0I809aRcu6weZMAGbN2Fmfj86LWWdqCpgQ6i2R9KCrr1wxib MMAuY8GVqJQOOs/qxwyQG5xfYGV7cy0z+lLMfL5uEdQUpFMnFJDKxiD/ciJyedj/7Lu9 sO8flz+YHnN4vvdL3EQmg+oKPYNf/Wg5PV5kdEBVDzbnNd02XHABh3nR/4D2KZfNzFQt Ezjg== Received: by 10.216.209.167 with SMTP id s39mr4458889weo.118.1352453071449; Fri, 09 Nov 2012 01:24:31 -0800 (PST) Received: from localhost.localdomain (espcolo-webproxy02.nokia.com. [192.100.120.42]) by mx.google.com with ESMTPS id r10sm1560293wiz.0.2012.11.09.01.24.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 01:24:31 -0800 (PST) From: Tommi Rantala To: David Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH 4/6] drm/mgag200: remove unneeded aper->count assignment after alloc_apertures() Date: Fri, 9 Nov 2012 11:19:38 +0200 Message-Id: <1352452780-2029-5-git-send-email-tt.rantala@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352452780-2029-1-git-send-email-tt.rantala@gmail.com> References: <1352452780-2029-1-git-send-email-tt.rantala@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 alloc_apertures() already does the assignment for us, so assigning the count member after the alloc_apertures() call is not needed. Signed-off-by: Tommi Rantala --- drivers/gpu/drm/mgag200/mgag200_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 857d71b..70dd3c5 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c @@ -142,7 +142,6 @@ static int mga_vram_init(struct mga_device *mdev) aper->ranges[0].base = mdev->mc.vram_base; aper->ranges[0].size = mdev->mc.vram_window; - aper->count = 1; remove_conflicting_framebuffers(aper, "mgafb", true); kfree(aper);