Skip to contentSkip to conversation

CRYPTO: Fix checkpatch errors & warnings in arc4.c

PATCH In review [email protected] 2 participants 3 messages Feb 10, 2010 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CRYPTO: Fix checkpatch errors & warnings in arc4.c

From: Richard Hartmann <[email protected]>

---
 crypto/arc4.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
crypto/arc4.c +4 -5
index 8be47e1..8a61fa2 100644
@@ -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;
 	}
 
Signature · 1 line
1.6.6.1
#2 lore raw
Quoted 2 lines · Sebastian Andrzej Siewior

I've made this whitespace fixes and a few others while re-writting it yesterday. So I've taken care of this allready.

OK. Thanks for getting back to me :)

Richard