]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: acomp - Remove reqsize field
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 10:21:09 +0000 (18:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:16:21 +0000 (15:16 +0800)
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
include/crypto/internal/acompress.h

index 36b52a72a43be9427e0720312be6243b4391f062..d5605b0ad2664d8375cd4745317683203b399f72 100644 (file)
@@ -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;
 
index d6d53c7696fd7a05359f9e9b2daf409b3a438360..0f3ad65be2d9fea91b60ec0baf631c1603a19b99 100644 (file)
@@ -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;