From patchwork Mon Dec 22 00:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 42506 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1907824064 for ; Mon, 22 Dec 2014 00:10:27 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf2320346eek.1 for ; Sun, 21 Dec 2014 16:10:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=/MC+5wmFukhmVqm4+tcYdlcLA5kzlukgzfpdYIZ7pxs=; b=P2mT0tp1Gci27A98MhMLJSrxiR593sngphvQzM1PG24Io6ctLBPG5WMzhGqxWt1uOO lIhftDRuTxLvmDPFsGWeKdF3HjW2iBy9yfANlJUr+0MXXJXuNUOYGWkrO9lfKSZ3q+cO PmaZpQjLNDjDEqdQIAdcvwTcIehH//GOl2L2xSOIQS8b/6okhiJGIVJGgyf0krI0O4fC gW6iF0W+sqzpV41bp3w5G4m4vVmDQbmTsO7fG2DVX+0IcWXjH3zv4N1/Y4TloB1o3XxM QwHj/UssfHAV5Li3GnAd7O/V6bhrUa8QzCOn4F2dz0nLEQmOzeTmlyiKmkLu420fwDSN ZlTg== X-Gm-Message-State: ALoCoQmfnSyQWCTLDc1ZebNn9ynKsFSJ5bCNDeof8rOTMY5SPjqBLpQXc62isyCYVVS1m3nzlO0C X-Received: by 10.152.44.225 with SMTP id h1mr2391510lam.2.1419207026120; Sun, 21 Dec 2014 16:10:26 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.39 with SMTP id x7ls197558lax.92.gmail; Sun, 21 Dec 2014 16:10:25 -0800 (PST) X-Received: by 10.152.23.164 with SMTP id n4mr18812908laf.77.1419207025906; Sun, 21 Dec 2014 16:10:25 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id an8si16923690lac.95.2014.12.21.16.10.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Dec 2014 16:10:25 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id pv20so3247260lab.13 for ; Sun, 21 Dec 2014 16:10:25 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr18983658lbb.32.1419207025098; Sun, 21 Dec 2014 16:10:25 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp880279lbb; Sun, 21 Dec 2014 16:10:24 -0800 (PST) X-Received: by 10.68.201.233 with SMTP id kd9mr30038897pbc.149.1419207023350; Sun, 21 Dec 2014 16:10:23 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id br6si993761pdb.251.2014.12.21.16.10.22; Sun, 21 Dec 2014 16:10:23 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753625AbaLVAKI (ORCPT + 27 others); Sun, 21 Dec 2014 19:10:08 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:58429 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753376AbaLVAKG (ORCPT ); Sun, 21 Dec 2014 19:10:06 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so4791860pab.28 for ; Sun, 21 Dec 2014 16:10:05 -0800 (PST) X-Received: by 10.68.164.34 with SMTP id yn2mr30879075pbb.158.1419207005690; Sun, 21 Dec 2014 16:10:05 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id zk9sm15601665pac.1.2014.12.21.16.10.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Dec 2014 16:10:05 -0800 (PST) From: mathieu.poirier@linaro.org To: jason@lakedaemon.net, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH] staging: skein: Fixing various coding style problems Date: Sun, 21 Dec 2014 17:09:48 -0700 Message-Id: <1419206988-27331-1-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mathieu Poirier Fixing errors related to the usage of do {} while (0) loop in single statement macros, trailing semicolon in macros and trailing whitespace. Signed-off-by: Mathieu Poirier --- drivers/staging/skein/skein_block.c | 17 ++++------------- drivers/staging/skein/skein_generic.c | 1 - 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/staging/skein/skein_block.c b/drivers/staging/skein/skein_block.c index 66261ab25c88..43a342372633 100644 --- a/drivers/staging/skein/skein_block.c +++ b/drivers/staging/skein/skein_block.c @@ -82,10 +82,7 @@ do { \ } while (0) #else /* looping version */ -#define R256(p0, p1, p2, p3, ROT, r_num) \ -do { \ - ROUND256(p0, p1, p2, p3, ROT, r_num); \ -} while (0) +#define R256(p0, p1, p2, p3, ROT, r_num) ROUND256(p0, p1, p2, p3, ROT, r_num) #define I256(R) \ do { \ @@ -174,9 +171,7 @@ do { \ #else /* looping version */ #define R512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) \ -do { \ - ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num); \ -} while (0) + ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) #define I512(R) \ do { \ @@ -263,10 +258,8 @@ do { \ #if SKEIN_UNROLL_1024 == 0 #define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \ ROT, rn) \ -do { \ ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \ - pF, ROT, rn); \ -} while (0) + pF, ROT, rn) #define I1024(R) \ do { \ @@ -291,10 +284,8 @@ do { \ #else /* looping version */ #define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \ ROT, rn) \ -do { \ ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \ - pF, ROT, rn); \ -} while (0) + pF, ROT, rn) #define I1024(R) \ do { \ diff --git a/drivers/staging/skein/skein_generic.c b/drivers/staging/skein/skein_generic.c index 85bd7d0168b0..899078f1b8bc 100644 --- a/drivers/staging/skein/skein_generic.c +++ b/drivers/staging/skein/skein_generic.c @@ -191,7 +191,6 @@ static int __init skein_generic_init(void) return 0; - unreg512: crypto_unregister_shash(&alg512); unreg256: