From patchwork Tue Jul 15 17:22:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Klausner X-Patchwork-Id: 4556601 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 61BA0C0515 for ; Tue, 15 Jul 2014 17:23:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FF7720170 for ; Tue, 15 Jul 2014 17:23:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9EAA22010E for ; Tue, 15 Jul 2014 17:23:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8949A6E1D2; Tue, 15 Jul 2014 10:23:02 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E05D6E1D2 for ; Tue, 15 Jul 2014 10:23:01 -0700 (PDT) Received: from edge01.upcmail.net ([192.168.13.236]) by viefep15-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140715172258.FQHM19410.viefep15-int.chello.at@edge01.upcmail.net>; Tue, 15 Jul 2014 19:22:58 +0200 Received: from yt.nih.at ([213.47.1.69]) by edge01.upcmail.net with edge id ShNw1o0161VKkul01hNw5L; Tue, 15 Jul 2014 19:22:58 +0200 X-SourceIP: 213.47.1.69 Received: by yt.nih.at (Postfix, from userid 1000) id 7E6132AC129; Tue, 15 Jul 2014 19:23:00 +0200 (CEST) From: Thomas Klausner To: dri-devel@lists.freedesktop.org Subject: [PATCH:drm 1/4] Remove superfluous parentheses. Date: Tue, 15 Jul 2014 19:22:52 +0200 Message-Id: <1405444975-29236-1-git-send-email-wiz@NetBSD.org> X-Mailer: git-send-email 1.9.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 Signed-off-by: Thomas Klausner --- radeon/radeon_surface.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 109bd6b..9c3a192 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -282,7 +282,7 @@ static int r6_surface_init_linear(struct radeon_surface_manager *surf_man, surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -310,7 +310,7 @@ static int r6_surface_init_linear_aligned(struct radeon_surface_manager *surf_ma surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -343,7 +343,7 @@ static int r6_surface_init_1d(struct radeon_surface_manager *surf_man, surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -384,7 +384,7 @@ static int r6_surface_init_2d(struct radeon_surface_manager *surf_man, } /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -632,7 +632,7 @@ static int eg_surface_init_1d(struct radeon_surface_manager *surf_man, surf_minify(surf, level+i, bpe, i, xalign, yalign, zalign, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -685,7 +685,7 @@ static int eg_surface_init_2d(struct radeon_surface_manager *surf_man, } /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } } @@ -1524,7 +1524,7 @@ static int si_surface_init_linear_aligned(struct radeon_surface_manager *surf_ma si_surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, slice_align, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, surf->bo_alignment); } if (surf->flags & RADEON_SURF_HAS_TILE_MODE_INDEX) { @@ -1567,7 +1567,7 @@ static int si_surface_init_1d(struct radeon_surface_manager *surf_man, si_surf_minify(surf, level+i, bpe, i, xalign, yalign, zalign, slice_align, offset); /* level0 and first mipmap need to have alignment */ offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { offset = ALIGN(offset, alignment); } if (surf->flags & RADEON_SURF_HAS_TILE_MODE_INDEX) { @@ -1669,7 +1669,7 @@ static int si_surface_init_2d(struct radeon_surface_manager *surf_man, } /* level0 and first mipmap need to have alignment */ aligned_offset = offset = surf->bo_size; - if ((i == 0)) { + if (i == 0) { aligned_offset = ALIGN(aligned_offset, surf->bo_alignment); } if (surf->flags & RADEON_SURF_HAS_TILE_MODE_INDEX) {