diff mbox series

[6/7] crypto: acomp - Remove reqsize field

Message ID f9ca529efa20aee6fa82998725eb94d561e6162d.1744021074.git.herbert@gondor.apana.org.au (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: Add reqsize to crypto_alg | expand

Commit Message

Herbert Xu April 7, 2025, 10:21 a.m. UTC
Remove the type-specific reqsize field in favour of the common one.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/acompress.c                  | 2 +-
 include/crypto/internal/acompress.h | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/crypto/acompress.c b/crypto/acompress.c
index e9406eb8fcf4..dbf647810e50 100644
--- a/crypto/acompress.c
+++ b/crypto/acompress.c
@@ -109,7 +109,7 @@  static int crypto_acomp_init_tfm(struct crypto_tfm *tfm)
 
 	acomp->compress = alg->compress;
 	acomp->decompress = alg->decompress;
-	acomp->reqsize = alg->base.cra_reqsize ?: alg->reqsize;
+	acomp->reqsize = alg->base.cra_reqsize;
 
 	acomp->base.exit = crypto_acomp_exit_tfm;
 
diff --git a/include/crypto/internal/acompress.h b/include/crypto/internal/acompress.h
index d6d53c7696fd..0f3ad65be2d9 100644
--- a/include/crypto/internal/acompress.h
+++ b/include/crypto/internal/acompress.h
@@ -40,7 +40,6 @@ 
  *		counterpart to @init, used to remove various changes set in
  *		@init.
  *
- * @reqsize:	Context size for (de)compression requests
  * @base:	Common crypto API algorithm data structure
  * @calg:	Cmonn algorithm data structure shared with scomp
  */
@@ -50,8 +49,6 @@  struct acomp_alg {
 	int (*init)(struct crypto_acomp *tfm);
 	void (*exit)(struct crypto_acomp *tfm);
 
-	unsigned int reqsize;
-
 	union {
 		struct COMP_ALG_COMMON;
 		struct comp_alg_common calg;