Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77ec2e73 authored by Jussi Kivilinna's avatar Jussi Kivilinna Committed by Herbert Xu
Browse files

crypto: cleanup - remove unneeded crypto_alg.cra_list initializations



Initialization of cra_list is currently mixed, most ciphers initialize this
field and most shashes do not. Initialization however is not needed at all
since cra_list is initialized/overwritten in __crypto_register_alg() with
list_add(). Therefore perform cleanup to remove all unneeded initializations
of this field in 'crypto/'.

Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f4b0277e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1448,7 +1448,6 @@ static struct crypto_alg aes_alg = {
	.cra_ctxsize		=	sizeof(struct crypto_aes_ctx),
	.cra_alignmask		=	3,
	.cra_module		=	THIS_MODULE,
	.cra_list		=	LIST_HEAD_INIT(aes_alg.cra_list),
	.cra_u			=	{
		.cipher = {
			.cia_min_keysize	=	AES_MIN_KEY_SIZE,
+0 −1
Original line number Diff line number Diff line
@@ -678,7 +678,6 @@ static struct crypto_alg anubis_alg = {
	.cra_ctxsize		=	sizeof (struct anubis_ctx),
	.cra_alignmask		=	3,
	.cra_module		=	THIS_MODULE,
	.cra_list		=	LIST_HEAD_INIT(anubis_alg.cra_list),
	.cra_u			=	{ .cipher = {
	.cia_min_keysize	=	ANUBIS_MIN_KEY_SIZE,
	.cia_max_keysize	=	ANUBIS_MAX_KEY_SIZE,
+0 −1
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ static struct crypto_alg alg = {
	.cra_ctxsize		=	sizeof(struct bf_ctx),
	.cra_alignmask		=	3,
	.cra_module		=	THIS_MODULE,
	.cra_list		=	LIST_HEAD_INIT(alg.cra_list),
	.cra_u			=	{ .cipher = {
	.cia_min_keysize	=	BF_MIN_KEY_SIZE,
	.cia_max_keysize	=	BF_MAX_KEY_SIZE,
+0 −1
Original line number Diff line number Diff line
@@ -1072,7 +1072,6 @@ static struct crypto_alg camellia_alg = {
	.cra_ctxsize		=	sizeof(struct camellia_ctx),
	.cra_alignmask		=	3,
	.cra_module		=	THIS_MODULE,
	.cra_list		=	LIST_HEAD_INIT(camellia_alg.cra_list),
	.cra_u			=	{
		.cipher = {
			.cia_min_keysize	=	CAMELLIA_MIN_KEY_SIZE,
+0 −1
Original line number Diff line number Diff line
@@ -779,7 +779,6 @@ static struct crypto_alg alg = {
	.cra_ctxsize 	= sizeof(struct cast5_ctx),
	.cra_alignmask	= 3,
	.cra_module 	= THIS_MODULE,
	.cra_list 	= LIST_HEAD_INIT(alg.cra_list),
	.cra_u 		= {
		.cipher = {
			.cia_min_keysize = CAST5_MIN_KEY_SIZE,
Loading