From patchwork Wed Oct 24 14:42:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Senna Tschudin X-Patchwork-Id: 1642431 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id E918ADF264 for ; Thu, 25 Oct 2012 09:05:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09103A0258 for ; Thu, 25 Oct 2012 02:05:32 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E8E99E7E9 for ; Wed, 24 Oct 2012 07:42:52 -0700 (PDT) Received: by mail-wi0-f169.google.com with SMTP id hq4so4075304wib.0 for ; Wed, 24 Oct 2012 07:42:51 -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:x-mailer; bh=D/eLgW4xLES4DCqNTHKi5WPEV9hBa/a/GgGSxzIH6y4=; b=n3JXGk2IjuEimV9eEMDf9hrp0TSHPJ1xT+QGs/GvYoIv7P5DOcUkYEvuN4iPuM1gxn /jCq4xTA/N/80CyCcBKIvAWiyng5otEoASVbt4CXIbMscRDIcUTue7Kvjs+yE+VNePEu 8pvmOVnSGNAJTXb2ip+rHnzj4LlgA1QZSCfV5vniAS3x3UwpXMiR3F+6XtymTOnqLi0A RReau3IR35zIvJNzBjAiy6skOH2jQI+iduDkYIR4o6T6skCXwrShxBv8Ik1hGPRs/qXB 4qNkG03IQ78kNFLXVzOgmXUbD4MtocgCR4NF68j42XAVniecbGClSqFUny2K0e7Y4cWw Uf8w== Received: by 10.216.201.28 with SMTP id a28mr10183637weo.74.1351089761508; Wed, 24 Oct 2012 07:42:41 -0700 (PDT) Received: from ace.home.fr (ppeter.rsr.lip6.fr. [132.227.76.16]) by mx.google.com with ESMTPS id f1sm4668236wiy.2.2012.10.24.07.42.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Oct 2012 07:42:37 -0700 (PDT) From: Peter Senna Tschudin To: airlied@linux.ie Subject: [PATCH] drivers/gpu/drm/radeon/evergreen_cs.c: Remove unnecessary semicolon Date: Wed, 24 Oct 2012 16:42:26 +0200 Message-Id: <1351089746-5552-1-git-send-email-peter.senna@gmail.com> X-Mailer: git-send-email 1.7.11.7 X-Mailman-Approved-At: Wed, 24 Oct 2012 22:46:39 -0700 Cc: Peter Senna Tschudin , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, jglisse@redhat.com, alexander.deucher@amd.com, airlied@redhat.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 A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // Signed-off-by: Peter Senna Tschudin --- The full version of the semantic patch can be found at: http://www.mail-archive.com/cocci@systeme.lip6.fr/msg00014.html drivers/gpu/drm/radeon/evergreen_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 573ed1b..5daf0c5 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -264,7 +264,7 @@ static int evergreen_surface_check_2d(struct radeon_cs_parser *p, /* macro tile width & height */ palign = (8 * surf->bankw * track->npipes) * surf->mtilea; halign = (8 * surf->bankh * surf->nbanks) / surf->mtilea; - mtileb = (palign / 8) * (halign / 8) * tileb;; + mtileb = (palign / 8) * (halign / 8) * tileb; mtile_pr = surf->nbx / palign; mtile_ps = (mtile_pr * surf->nby) / halign; surf->layer_size = mtile_ps * mtileb * slice_pt;