From patchwork Sun May 23 20:02:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Gelmini X-Patchwork-Id: 101765 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4NK2hM4005272 for ; Sun, 23 May 2010 20:02:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754670Ab0EWUCu (ORCPT ); Sun, 23 May 2010 16:02:50 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:58872 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754313Ab0EWUCt (ORCPT ); Sun, 23 May 2010 16:02:49 -0400 Received: by fxm5 with SMTP id 5so1960255fxm.19 for ; Sun, 23 May 2010 13:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=g5/FO5lBVvVyag5hGaMf8q3iv2FdhJNuls2F+Fdiekg=; b=tjK7PimIKkqE9NFE/g0xW+YC2/MZy7nIleXk5m5v5hn7/F6LR0maYLJZIAZY/b0FAG BQgGulRUjO1tCMjgMADRuRrHQ7YT+VlvCwc+CZTwUYbt4gV6eiTIxldjCGId6XpMmc8/ z6nN2B2XSVBrZ8WPFNANE5wcPQvmenOmXYBtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=T76FlxiIzFrQajdRxKI1je+bxUZWWGwKcpYlbElVXy6DdwmQ9BdEZVxDN0I5onlBCQ 8S2HnPHzdDg/6ALTXVEFfhJwp70YPJm4ua7kab1aA/GI1fFvuN7MTXXsmpn86JyCT3Ac B3loQywOvIsK4c0j1DpBNgNSyJ2AFAh9TrrLw= Received: by 10.87.63.31 with SMTP id q31mr7279491fgk.18.1274644968183; Sun, 23 May 2010 13:02:48 -0700 (PDT) Received: from localhost.localdomain (net-93-145-200-9.t2.dsl.vodafone.it [93.145.200.9]) by mx.google.com with ESMTPS id d8sm7928329fga.11.2010.05.23.13.02.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 May 2010 13:02:47 -0700 (PDT) From: Andrea Gelmini To: andrea.gelmini@gelma.net Cc: Kyle McMartin , Helge Deller , "James E.J. Bottomley" , linux-parisc@vger.kernel.org Subject: [PATCH 175/199] arch/parisc/lib/memset.c: Checkpatch cleanup Date: Sun, 23 May 2010 22:02:02 +0200 Message-Id: <1274644930-26600-18-git-send-email-andrea.gelmini@gelma.net> X-Mailer: git-send-email 1.7.1.251.gf80a2 In-Reply-To: <1274644930-26600-1-git-send-email-andrea.gelmini@gelma.net> References: <1274644930-26600-1-git-send-email-andrea.gelmini@gelma.net> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 23 May 2010 20:02:50 +0000 (UTC) diff --git a/arch/parisc/lib/memset.c b/arch/parisc/lib/memset.c index 1d7929b..66e518f 100644 --- a/arch/parisc/lib/memset.c +++ b/arch/parisc/lib/memset.c @@ -25,13 +25,12 @@ typedef unsigned long op_t; void * -memset (void *dstpp, int sc, size_t len) +memset(void *dstpp, int sc, size_t len) { unsigned int c = sc; long int dstp = (long int) dstpp; - if (len >= 8) - { + if (len >= 8) { size_t xlen; op_t cccc; @@ -44,17 +43,15 @@ memset (void *dstpp, int sc, size_t len) /* There are at least some bytes to set. No need to test for LEN == 0 in this alignment loop. */ - while (dstp % OPSIZ != 0) - { - ((unsigned char *) dstp)[0] = c; - dstp += 1; - len -= 1; + while (dstp % OPSIZ != 0) { + ((unsigned char *) dstp)[0] = c; + dstp += 1; + len -= 1; } /* Write 8 `op_t' per iteration until less than 8 `op_t' remain. */ xlen = len / (OPSIZ * 8); - while (xlen > 0) - { + while (xlen > 0) { ((op_t *) dstp)[0] = cccc; ((op_t *) dstp)[1] = cccc; ((op_t *) dstp)[2] = cccc; @@ -70,8 +67,7 @@ memset (void *dstpp, int sc, size_t len) /* Write 1 `op_t' per iteration until less than OPSIZ bytes remain. */ xlen = len / OPSIZ; - while (xlen > 0) - { + while (xlen > 0) { ((op_t *) dstp)[0] = cccc; dstp += OPSIZ; xlen -= 1; @@ -80,8 +76,7 @@ memset (void *dstpp, int sc, size_t len) } /* Write the last few bytes. */ - while (len > 0) - { + while (len > 0) { ((unsigned char *) dstp)[0] = c; dstp += 1; len -= 1;