mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
crypto: acomp - Remove reqsize field
Remove the type-specific reqsize field in favour of the common one. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
47b5b6f9eb
commit
300e6d6e9e
2 changed files with 1 additions and 4 deletions
|
@ -109,7 +109,7 @@ static int crypto_acomp_init_tfm(struct crypto_tfm *tfm)
|
||||||
|
|
||||||
acomp->compress = alg->compress;
|
acomp->compress = alg->compress;
|
||||||
acomp->decompress = alg->decompress;
|
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;
|
acomp->base.exit = crypto_acomp_exit_tfm;
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
* counterpart to @init, used to remove various changes set in
|
* counterpart to @init, used to remove various changes set in
|
||||||
* @init.
|
* @init.
|
||||||
*
|
*
|
||||||
* @reqsize: Context size for (de)compression requests
|
|
||||||
* @base: Common crypto API algorithm data structure
|
* @base: Common crypto API algorithm data structure
|
||||||
* @calg: Cmonn algorithm data structure shared with scomp
|
* @calg: Cmonn algorithm data structure shared with scomp
|
||||||
*/
|
*/
|
||||||
|
@ -50,8 +49,6 @@ struct acomp_alg {
|
||||||
int (*init)(struct crypto_acomp *tfm);
|
int (*init)(struct crypto_acomp *tfm);
|
||||||
void (*exit)(struct crypto_acomp *tfm);
|
void (*exit)(struct crypto_acomp *tfm);
|
||||||
|
|
||||||
unsigned int reqsize;
|
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct COMP_ALG_COMMON;
|
struct COMP_ALG_COMMON;
|
||||||
struct comp_alg_common calg;
|
struct comp_alg_common calg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue