Skip to contentSkip to conversation

crypto: echainiv - Remove unused alg/spawn variable

PATCH In review Corentin Labbe 2 participants 4 messages Dec 12, 2017 – Dec 22, 2017 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 crypto: echainiv - Remove unused alg/spawn variable

This patch remove two unused variable and some dead "code" using it.

Fixes 66008d4230f6 ("crypto: echainiv - Remove AEAD compatibility code")
---
 crypto/echainiv.c | 5 -----
 1 file changed, 5 deletions(-)
crypto/echainiv.c +0 -5
index e3d889b122e0..45819e6015bf 100644
@@ -118,8 +118,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
 				struct rtattr **tb)
 {
 	struct aead_instance *inst;
-	struct crypto_aead_spawn *spawn;
-	struct aead_alg *alg;
 	int err;
 
 	inst = aead_geniv_alloc(tmpl, tb, 0, 0);
@@ -127,9 +125,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
 	if (IS_ERR(inst))
 		return PTR_ERR(inst);
 
-	spawn = aead_instance_ctx(inst);
-	alg = crypto_spawn_aead_alg(spawn);
-
 	err = -EINVAL;
 	if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize)
 		goto free_inst;
Signature · 1 line
2.13.6
#1 lore raw

PATCH 2/2 crypto: seqiv - Remove unused alg/spawn variable

This patch remove two unused variable and some dead "code" using it.

Fixes 92932d03c2b3 ("crypto: seqiv - Remove AEAD compatibility code")
---
 crypto/seqiv.c | 5 -----
 1 file changed, 5 deletions(-)
crypto/seqiv.c +0 -5
index 570b7d1aa0ca..39dbf2f7e5f5 100644
@@ -144,8 +144,6 @@ static int seqiv_aead_decrypt(struct aead_request *req)
 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb)
 {
 	struct aead_instance *inst;
-	struct crypto_aead_spawn *spawn;
-	struct aead_alg *alg;
 	int err;
 
 	inst = aead_geniv_alloc(tmpl, tb, 0, 0);
@@ -153,9 +151,6 @@ static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb)
 	if (IS_ERR(inst))
 		return PTR_ERR(inst);
 
-	spawn = aead_instance_ctx(inst);
-	alg = crypto_spawn_aead_alg(spawn);
-
 	err = -EINVAL;
 	if (inst->alg.ivsize != sizeof(u64))
 		goto free_inst;
Signature · 1 line
2.13.6
maintainer
#2 lore raw

Re: [PATCH 2/2] crypto: seqiv - Remove unused alg/spawn variable

Quoted 5 lines · Corentin Labbe

This patch remove two unused variable and some dead "code" using it.

Fixes 92932d03c2b3 ("crypto: seqiv - Remove AEAD compatibility code")

Patch applied. Thanks.

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
maintainer
#3 lore raw
In reply to Corentin Labbe
Quoted 4 lines · Corentin Labbe

This patch remove two unused variable and some dead "code" using it.

Fixes 66008d4230f6 ("crypto: echainiv - Remove AEAD compatibility code")

Patch applied. Thanks.

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