diff options
author | Liu Shixin <liushixin2@huawei.com> | 2021-06-11 10:01:00 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-17 15:07:31 +0800 |
commit | 0131de81aa64011467f83817ebd9e191dba764ff (patch) | |
tree | ba141e1addbafdc72167e5ed91f0a3ef345172c8 /crypto/algapi.c | |
parent | d676b48fa74f5fb9d62de1673a63d390fc68bb47 (diff) | |
download | linux-crypto-0131de81aa64011467f83817ebd9e191dba764ff.tar.gz linux-crypto-0131de81aa64011467f83817ebd9e191dba764ff.zip |
crypto: api - remove CRYPTOA_U32 and related functions
According to the advice of Eric and Herbert, type CRYPTOA_U32
has been unused for over a decade, so remove the code related to
CRYPTOA_U32.
After removing CRYPTOA_U32, the type of the variable attrs can be
changed from union to struct.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index fdabf267..43f999db 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -868,24 +868,6 @@ const char *crypto_attr_alg_name(struct rtattr *rta) } EXPORT_SYMBOL_GPL(crypto_attr_alg_name); -int crypto_attr_u32(struct rtattr *rta, u32 *num) -{ - struct crypto_attr_u32 *nu32; - - if (!rta) - return -ENOENT; - if (RTA_PAYLOAD(rta) < sizeof(*nu32)) - return -EINVAL; - if (rta->rta_type != CRYPTOA_U32) - return -EINVAL; - - nu32 = RTA_DATA(rta); - *num = nu32->num; - - return 0; -} -EXPORT_SYMBOL_GPL(crypto_attr_u32); - int crypto_inst_setname(struct crypto_instance *inst, const char *name, struct crypto_alg *alg) { |