* [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c
@ 2010-02-10 1:17 richih.mailinglist
2010-02-10 9:28 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 3+ messages in thread
From: richih.mailinglist @ 2010-02-10 1:17 UTC (permalink / raw)
To: richih.mailinglist
Cc: Herbert Xu, David S. Miller, linux-kernel, linux-crypto
From: Richard Hartmann <richih.mailinglist@gmail.com>
Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c
2010-02-10 1:17 [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c richih.mailinglist
@ 2010-02-10 9:28 ` Sebastian Andrzej Siewior
2010-02-10 13:47 ` Richard Hartmann
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2010-02-10 9:28 UTC (permalink / raw)
To: richih.mailinglist
Cc: Herbert Xu, David S. Miller, linux-kernel, linux-crypto
* richih.mailinglist@gmail.com | 2010-02-10 02:17:39 [+0100]:
>From: Richard Hartmann <richih.mailinglist@gmail.com>
>
>
>Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com>
>---
> crypto/arc4.c | 9 ++++-----
> 1 files changed, 4 insertions(+), 5 deletions(-)
I've made this whitespace fixes and a few others while re-writting it
yesterday. So I've taken care of this allready.
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c
2010-02-10 9:28 ` Sebastian Andrzej Siewior
@ 2010-02-10 13:47 ` Richard Hartmann
0 siblings, 0 replies; 3+ messages in thread
From: Richard Hartmann @ 2010-02-10 13:47 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: Herbert Xu, David S. Miller, linux-kernel, linux-crypto
On Wed, Feb 10, 2010 at 10:28, Sebastian Andrzej Siewior
<sebatian@breakpoint.cc> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-10 13:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-10 1:17 [PATCH 1/1] CRYPTO: Fix checkpatch errors & warnings in arc4.c richih.mailinglist
2010-02-10 9:28 ` Sebastian Andrzej Siewior
2010-02-10 13:47 ` Richard Hartmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox