Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754946Ab0BJBS3 (ORCPT ); Tue, 9 Feb 2010 20:18:29 -0500 Received: from mail-fx0-f220.google.com ([209.85.220.220]:44859 "EHLO mail-fx0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754300Ab0BJBS1 (ORCPT ); Tue, 9 Feb 2010 20:18:27 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=AbnvFUk+p0B6pWGinExMHNrPqJLF7pner37JZLq5Mjz0h7jdfjtiX5d8eyKtL23mUH cL7i/2Q7YojehYGgq+wTMyTtm/ylZLqLJMzyW/dEwQH0Bhkz14eVN7WCwsSRgizG+Yje kxNsyRTUNd/PoPEuEhOR2elUpfbNQVdkkOdGE= From: richih.mailinglist@gmail.com To: richih.mailinglist@gmail.com Cc: Herbert Xu , "David S. Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c Date: Wed, 10 Feb 2010 02:17:39 +0100 Message-Id: <1265764660-23178-1-git-send-email-richih.mailinglist@gmail.com> X-Mailer: git-send-email 1.6.6.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1068 Lines: 46 From: Richard Hartmann Signed-off-by: Richard Hartmann --- crypto/arc4.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crypto/arc4.c b/crypto/arc4.c index 8be47e1..8a61fa2 100644 --- a/crypto/arc4.c +++ b/crypto/arc4.c @@ -1,4 +1,4 @@ -/* +/* * Cryptographic API * * ARC4 Cipher Algorithm @@ -33,16 +33,15 @@ static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, ctx->x = 1; ctx->y = 0; - for(i = 0; i < 256; i++) + for (i = 0; i < 256; i++) ctx->S[i] = i; - for(i = 0; i < 256; i++) - { + for (i = 0; i < 256; i++) { u8 a = ctx->S[i]; j = (j + in_key[k] + a) & 0xff; ctx->S[i] = ctx->S[j]; ctx->S[j] = a; - if(++k >= key_len) + if (++k >= key_len) k = 0; } -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/