aboutsummaryrefslogtreecommitdiff
path: root/crypto/pcompress.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-20 13:39:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-21 10:19:55 +0800
commitf7c9bebe8bc79ddb8a50db441a53b59b61ae3ba8 (patch)
tree52914f4390e96050aeaa612834e3beedecd8c255 /crypto/pcompress.c
parentac611680cb4f6fce26d97a79fd8aac3d42c5da91 (diff)
downloadlinux-stericsson-f7c9bebe8bc79ddb8a50db441a53b59b61ae3ba8.tar.gz
crypto: pcomp - Use crypto_alg_extsize helper
This patch replaces crypto_pcomp_extsize function with crypto_alg_extsize. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/pcompress.c')
-rw-r--r--crypto/pcompress.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/pcompress.c b/crypto/pcompress.c
index 7140fe70c7af..7a13b4088857 100644
--- a/crypto/pcompress.c
+++ b/crypto/pcompress.c
@@ -38,11 +38,6 @@ static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask)
return 0;
}
-static unsigned int crypto_pcomp_extsize(struct crypto_alg *alg)
-{
- return alg->cra_ctxsize;
-}
-
static int crypto_pcomp_init_tfm(struct crypto_tfm *tfm)
{
return 0;
@@ -77,7 +72,7 @@ static void crypto_pcomp_show(struct seq_file *m, struct crypto_alg *alg)
}
static const struct crypto_type crypto_pcomp_type = {
- .extsize = crypto_pcomp_extsize,
+ .extsize = crypto_alg_extsize,
.init = crypto_pcomp_init,
.init_tfm = crypto_pcomp_init_tfm,
#ifdef CONFIG_PROC_FS