Skip to contentSkip to conversation

crypto: 842 - remove .cra_list initialization

PATCH In review Jussi Kivilinna 3 participants 3 messages Aug 29, 2012 – Sep 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: 842 - remove .cra_list initialization

.cra_list initialization is unneeded and have been removed from all other crypto modules except 842.

Cc Robert Jennings <[email protected]>
Cc Seth Jennings <[email protected]>

---

I don't have ppc64 cross-compiler set up, so I couldn't test this. However patch is obvious and should work.

---
 crypto/842.c |    1 -
 1 file changed, 1 deletion(-)
crypto/842.c +0 -1
index 144767d..65c7a89c 100644
@@ -157,7 +157,6 @@ static struct crypto_alg alg = {
 	.cra_flags		= CRYPTO_ALG_TYPE_COMPRESS,
 	.cra_ctxsize		= sizeof(struct nx842_ctx),
 	.cra_module		= THIS_MODULE,
-	.cra_list		= LIST_HEAD_INIT(alg.cra_list),
 	.cra_init		= nx842_init,
 	.cra_exit		= nx842_exit,
 	.cra_u			= { .compress = {
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jussi Kivilinna

.cra_list initialization is unneeded and have been removed from all other crypto modules except 842.

Cc Robert Jennings <[email protected]>
Cc Seth Jennings <[email protected]>

---

I don't have ppc64 cross-compiler set up, so I couldn't test this. However patch is obvious and should work.

Applied on top of next-20120824 and it builds on ppc64, just for peace of mind :)

I see the other patch in next that did this for all the others.

--
Seth

maintainer
#2 lore raw
In reply to Jussi Kivilinna
Quoted 6 lines · Jussi Kivilinna

.cra_list initialization is unneeded and have been removed from all other crypto modules except 842.

Cc Robert Jennings <[email protected]>
Cc Seth Jennings <[email protected]>

Patch applied.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt