mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user